You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2014/07/02 19:07:08 UTC

git commit: [SPARK-2328] [SQL] Add execution of `SHOW TABLES` before `TestHive.reset()`.

Repository: spark
Updated Branches:
  refs/heads/master 5c6ec94da -> 1e2c26c83


[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 <ue...@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()`.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/1e2c26c8
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/1e2c26c8
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/1e2c26c8

Branch: refs/heads/master
Commit: 1e2c26c83dd2e807cf0031ceca8b338a1a57cac6
Parents: 5c6ec94
Author: Takuya UESHIN <ue...@happy-camper.st>
Authored: Wed Jul 2 10:07:01 2014 -0700
Committer: Michael Armbrust <mi...@databricks.com>
Committed: Wed Jul 2 10:07:01 2014 -0700

----------------------------------------------------------------------
 .../scala/org/apache/spark/sql/hive/execution/PruningSuite.scala  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/1e2c26c8/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/PruningSuite.scala
----------------------------------------------------------------------
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 4d7c84f..34d8a06 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.