Skip to content
Snippets Groups Projects
Commit 32cbdfd2 authored by Michael Armbrust's avatar Michael Armbrust Committed by Patrick Wendell
Browse files

[SQL] Un-ignore a test that is now passing.

Add golden answer for aforementioned test.

Also, fix golden test generation from sbt/sbt by setting the classpath correctly.

Author: Michael Armbrust <michael@databricks.com>

Closes #244 from marmbrus/partTest and squashes the following commits:

37a33c9 [Michael Armbrust] Un-ignore a test that is now passing, add golden answer for aforementioned test.  Fix golden test generation from sbt/sbt.
parent 345825d9
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash #!/usr/bin/env bash
# When creating new tests for Spark SQL Hive, the HADOOP_CLASSPATH must contain the hive jars so
# that we can run Hive to generate the golden answer. This is not required for normal development
# or testing.
for i in $HIVE_HOME/lib/*
do HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$i
done
export HADOOP_CLASSPATH
realpath () { realpath () {
( (
TARGET_FILE=$1 TARGET_FILE=$1
......
...@@ -53,10 +53,8 @@ class HiveQuerySuite extends HiveComparisonTest { ...@@ -53,10 +53,8 @@ class HiveQuerySuite extends HiveComparisonTest {
createQueryTest("length.udf", createQueryTest("length.udf",
"SELECT length(\"test\") FROM src LIMIT 1") "SELECT length(\"test\") FROM src LIMIT 1")
ignore("partitioned table scan") { createQueryTest("partitioned table scan",
createQueryTest("partitioned table scan", "SELECT ds, hr, key, value FROM srcpart")
"SELECT ds, hr, key, value FROM srcpart")
}
createQueryTest("hash", createQueryTest("hash",
"SELECT hash('test') FROM src LIMIT 1") "SELECT hash('test') FROM src LIMIT 1")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment