aboutsummaryrefslogtreecommitdiff
path: root/sbt
diff options
context:
space:
mode:
authorMichael Armbrust <michael@databricks.com>2014-03-26 18:19:15 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-03-26 18:19:15 -0700
commit32cbdfd2887f7a792f360ac3224f8c38cc97d21f (patch)
treeebfc1da2395168ca7218767c5ae3a99ac925076b /sbt
parent345825d97987b9eeb2afcf002f815a05ff51fc2e (diff)
downloadspark-32cbdfd2887f7a792f360ac3224f8c38cc97d21f.tar.gz
spark-32cbdfd2887f7a792f360ac3224f8c38cc97d21f.tar.bz2
spark-32cbdfd2887f7a792f360ac3224f8c38cc97d21f.zip
[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.
Diffstat (limited to 'sbt')
-rwxr-xr-xsbt/sbt8
1 files changed, 8 insertions, 0 deletions
diff --git a/sbt/sbt b/sbt/sbt
index 3ffa4ed9ab..9de265bd07 100755
--- a/sbt/sbt
+++ b/sbt/sbt
@@ -1,5 +1,13 @@
#!/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 () {
(
TARGET_FILE=$1