spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marmb...@apache.org
Subject git commit: [SPARK-2328] [SQL] Add execution of `SHOW TABLES` before `TestHive.reset()`.
Date Wed, 02 Jul 2014 17:07:16 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-1.0-jdbc 8a6ee2f37 -> 56d674fe7


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

(cherry picked from commit 1e2c26c83dd2e807cf0031ceca8b338a1a57cac6)
Signed-off-by: Michael Armbrust <michael@databricks.com>


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

Branch: refs/heads/branch-1.0-jdbc
Commit: 56d674fe776cd279d43f0259b0f0249b3abdd87f
Parents: 8a6ee2f
Author: Takuya UESHIN <ueshin@happy-camper.st>
Authored: Wed Jul 2 10:07:01 2014 -0700
Committer: Michael Armbrust <michael@databricks.com>
Committed: Wed Jul 2 10:07:13 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/56d674fe/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.


Mime
View raw message