diff options
author | Takuya UESHIN <ueshin@happy-camper.st> | 2014-07-02 10:07:01 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-07-02 10:07:01 -0700 |
commit | 1e2c26c83dd2e807cf0031ceca8b338a1a57cac6 (patch) | |
tree | 0a8ebf7acfe7559df47f4cbde64f992e81d61852 /sql/hive/src | |
parent | 5c6ec94da1bacd8e65a43acb92b6721493484e7b (diff) | |
download | spark-1e2c26c83dd2e807cf0031ceca8b338a1a57cac6.tar.gz spark-1e2c26c83dd2e807cf0031ceca8b338a1a57cac6.tar.bz2 spark-1e2c26c83dd2e807cf0031ceca8b338a1a57cac6.zip |
[SPARK-2328] [SQL] Add execution of `SHOW TABLES` before `TestHive.reset()`.
`PruningSuite` is executed first of Hive tests unfortunately, `TestHive.reset()` breaks the test environment.
To prevent this, we must run a query before calling reset the first time.
Author: Takuya UESHIN <ueshin@happy-camper.st>
Closes #1268 from ueshin/issues/SPARK-2328 and squashes the following commits:
043ceac [Takuya UESHIN] Add execution of `SHOW TABLES` before `TestHive.reset()`.
Diffstat (limited to 'sql/hive/src')
-rw-r--r-- | sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/PruningSuite.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/PruningSuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/PruningSuite.scala index 4d7c84f443..34d8a061cc 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/PruningSuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/PruningSuite.scala @@ -26,6 +26,9 @@ import scala.collection.JavaConversions._ * A set of test cases that validate partition and column pruning. */ class PruningSuite extends HiveComparisonTest { + // MINOR HACK: You must run a query before calling reset the first time. + TestHive.hql("SHOW TABLES") + // Column/partition pruning is not implemented for `InMemoryColumnarTableScan` yet, need to reset // the environment to ensure all referenced tables in this suites are not cached in-memory. // Refer to https://issues.apache.org/jira/browse/SPARK-2283 for details. |