Skip to content

Commit

Permalink
Bump Apache Arrow to 3.0.0 (tensorflow#1285)
Browse files Browse the repository at this point in the history
Signed-off-by: Yong Tang <[email protected]>
  • Loading branch information
yongtang committed Apr 10, 2021
1 parent ea3d0ef commit 92d6a9c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ run_test() {
entry=$1
CPYTHON_VERSION=$($entry -c 'import sys; print(str(sys.version_info[0])+str(sys.version_info[1]))')
(cd wheelhouse && $entry -m pip install tensorflow_io-*-cp${CPYTHON_VERSION}-*.whl)
$entry -m pip install -q pytest pytest-benchmark boto3 fastavro avro-python3 scikit-image pandas pyarrow==2.0.0 google-cloud-pubsub==2.1.0 google-cloud-bigquery-storage==1.1.0 google-cloud-bigquery==2.3.1 google-cloud-storage==1.32.0
$entry -m pip install -q pytest pytest-benchmark boto3 fastavro avro-python3 scikit-image pandas pyarrow==3.0.0 google-cloud-pubsub==2.1.0 google-cloud-bigquery-storage==1.1.0 google-cloud-bigquery==2.3.1 google-cloud-storage==1.32.0
(cd tests && $entry -m pytest --benchmark-disable -v --import-mode=append $(find . -type f \( -iname "test_*.py" ! \( -iname "test_*_eager.py" \) \)))
(cd tests && $entry -m pytest --benchmark-disable -v --import-mode=append $(find . -type f \( -iname "test_*_eager.py" ! \( -iname "test_bigquery_eager.py" \) \)))
# GRPC and test_bigquery_eager tests have to be executed separately because of https://github.com/grpc/grpc/issues/20034
Expand Down
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ http_archive(
http_archive(
name = "arrow",
build_file = "//third_party:arrow.BUILD",
sha256 = "ea299df9cf440cfc43393ce12ee6d9a4c9d0dfa9fde33c3bc9b70ec25520a844",
strip_prefix = "arrow-apache-arrow-2.0.0",
sha256 = "fc461c4f0a60e7470a7c58b28e9344aa8fb0be5cc982e9658970217e084c3a82",
strip_prefix = "arrow-apache-arrow-3.0.0",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/apache/arrow/archive/apache-arrow-2.0.0.tar.gz",
"https://github.com/apache/arrow/archive/apache-arrow-2.0.0.tar.gz",
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/apache/arrow/archive/apache-arrow-3.0.0.tar.gz",
"https://github.com/apache/arrow/archive/apache-arrow-3.0.0.tar.gz",
],
)

Expand Down
3 changes: 2 additions & 1 deletion third_party/arrow.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ genrule(
srcs = ["cpp/src/arrow/util/config.h.cmake"],
outs = ["cpp/src/arrow/util/config.h"],
cmd = ("sed " +
"-e 's/@ARROW_VERSION_MAJOR@/2/g' " +
"-e 's/@ARROW_VERSION_MAJOR@/3/g' " +
"-e 's/@ARROW_VERSION_MINOR@/0/g' " +
"-e 's/@ARROW_VERSION_PATCH@/0/g' " +
"-e 's/cmakedefine ARROW_USE_NATIVE_INT128/undef ARROW_USE_NATIVE_INT128/g' " +
"-e 's/cmakedefine/define/g' " +
"$< >$@"),
)
Expand Down

0 comments on commit 92d6a9c

Please sign in to comment.