You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2014/03/21 06:31:17 UTC

git commit: Fix maven jenkins: Add explicit init for required tables in SQLQuerySuite

Repository: spark
Updated Branches:
  refs/heads/master 9aadcffab -> e09139d9c


Fix maven jenkins: Add explicit init for required tables in SQLQuerySuite

Sorry! I added this test at the last minute and failed to run it in maven as well.

Note that, this will probably not be sufficient to actually fix the maven jenkins build, as that does not use the dev/run-tests scripts.  We will need to configure it to also run dev/download-hive-tests.sh.  The other option would be to check in the tests as I suggested in the original PR. (I can do this if we agree its the right thing to do).

Long term it would probably be a good idea to also have maven run some sort of test env setup script so that we can decouple the test environment from the jenkins configuration.

Author: Michael Armbrust <mi...@databricks.com>

Closes #191 from marmbrus/fixMaven and squashes the following commits:

3366e37 [Michael Armbrust] Fix maven jenkins: Add explicit init for required tables in SQLQuerySuite


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

Branch: refs/heads/master
Commit: e09139d9ca529a8f983a8b3e2a8158c3f3caa523
Parents: 9aadcff
Author: Michael Armbrust <mi...@databricks.com>
Authored: Thu Mar 20 22:31:11 2014 -0700
Committer: Reynold Xin <rx...@apache.org>
Committed: Thu Mar 20 22:31:11 2014 -0700

----------------------------------------------------------------------
 sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/e09139d9/sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
index 5728313..656d89c 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
@@ -31,6 +31,9 @@ import TestSQLContext._
 import TestData._
 
 class SQLQuerySuite extends QueryTest {
+  // Make sure the tables are loaded.
+  TestData
+
   test("agg") {
     checkAnswer(
       sql("SELECT a, SUM(b) FROM testData2 GROUP BY a"),