Skip to content

Commit

Permalink
[SPARK-2747] git diff --dirstat can miss sql changes and not run Hive…
Browse files Browse the repository at this point in the history
… tests.
  • Loading branch information
rxin committed Jul 30, 2014
1 parent 7c5fc28 commit f5eab9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ JAVA_VERSION=$($java_cmd -version 2>&1 | sed 's/java version "\(.*\)\.\(.*\)\..*
# Partial solution for SPARK-1455. Only run Hive tests if there are sql changes.
if [ -n "$AMPLAB_JENKINS" ]; then
git fetch origin master:master
diffs=`git diff --dirstat master | awk '{ print $2; }' | grep "^sql/"`
diffs=`git diff --name-only master | grep "^sql/"`
if [ -n "$diffs" ]; then
echo "Detected changes in SQL. Will run Hive test suite."
export _RUN_SQL_TESTS=true # exported for PySpark tests
Expand Down

0 comments on commit f5eab9f

Please sign in to comment.