aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Armbrust <michael@databricks.com>2014-03-20 22:31:11 -0700
committerReynold Xin <rxin@apache.org>2014-03-20 22:31:11 -0700
commite09139d9ca529a8f983a8b3e2a8158c3f3caa523 (patch)
tree96a7eb7b29a1e63df061e1baf9d3c4b37dfe8dd1
parent9aadcffabd226557174f3ff566927f873c71672e (diff)
downloadspark-e09139d9ca529a8f983a8b3e2a8158c3f3caa523.tar.gz
spark-e09139d9ca529a8f983a8b3e2a8158c3f3caa523.tar.bz2
spark-e09139d9ca529a8f983a8b3e2a8158c3f3caa523.zip
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 <michael@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
-rw-r--r--sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala3
1 files changed, 3 insertions, 0 deletions
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 5728313d6d..656d89c644 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"),