aboutsummaryrefslogtreecommitdiff
path: root/sbt
diff options
context:
space:
mode:
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