Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[SPARK-12438][SQL]Updating CachedTableSuite.scala
Updating the test case methods corresponding the bug fix [SPARK-12438]
  • Loading branch information
thomastechs committed Jan 1, 2016
commit 76a9623fed32eeb3c4cd34e6a7ad54ffefca1b69
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.apache.spark.sql

import org.apache.spark.sql.catalyst.analysis.NoSuchTableException
import org.apache.spark.sql.AnalysisException
import org.apache.spark.sql.execution.Exchange
import org.apache.spark.sql.execution.PhysicalRDD

Expand Down Expand Up @@ -289,7 +289,7 @@ class CachedTableSuite extends QueryTest with SQLTestUtils with SharedSQLContext
testData.select('key).registerTempTable("t1")
sqlContext.table("t1")
sqlContext.dropTempTable("t1")
intercept[NoSuchTableException](sqlContext.table("t1"))
intercept[AnalysisException](sqlContext.table("t1"))
}

test("Drops cached temporary table") {
Expand All @@ -301,7 +301,7 @@ class CachedTableSuite extends QueryTest with SQLTestUtils with SharedSQLContext
assert(sqlContext.isCached("t2"))

sqlContext.dropTempTable("t1")
intercept[NoSuchTableException](sqlContext.table("t1"))
intercept[AnalysisException](sqlContext.table("t1"))
assert(!sqlContext.isCached("t2"))
}

Expand Down