Fix that parquet and arrow will build every time. (#2405)

* Fix the bug that parquet and arrow will build every time.

* Update build_arrow.sh

* Update build_arrow.sh
This commit is contained in:
Yuhong Guo
2018-07-17 13:56:14 +08:00
committed by Philipp Moritz
parent 0cecf6b79c
commit e3badb9b09
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -149,13 +149,18 @@ if [[ ! -d $TP_DIR/../python/ray/pyarrow_files/pyarrow ]] || \
[[ "$LANGUAGE" == "java" && ! -f $TP_DIR/build/arrow/cpp/build/release/libplasma_java.dylib ]]; then
build_arrow
else
REBUILD=off
pushd $TP_DIR/build/arrow
if [[ "$TARGET_COMMIT_ID" != `git rev-parse HEAD` ]]; then
# TARGET_COMMIT_ID may change to later commit.
echo "Commit ID mismatches."
git fetch origin master
git checkout $TARGET_COMMIT_ID
REBUILD=on
fi
popd
build_arrow
if [[ "$REBUILD" == "on" ]]; then
build_arrow
fi
fi
+1 -1
View File
@@ -65,8 +65,8 @@ else
echo "Commit ID mismatches."
git fetch origin master
git checkout $TARGET_COMMIT_ID
build_parquet
fi
build_parquet
popd
fi