Skip to content

Commit

Permalink
Revert "Update arrow to 4.0.0 (#1397)" (#1399)
Browse files Browse the repository at this point in the history
This reverts commit 7d20567.
  • Loading branch information
yongtang authored May 6, 2021
1 parent 431fd39 commit 22f4103
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 49 deletions.
18 changes: 4 additions & 14 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ http_archive(
"""sed -i.bak 's/type_traits/std::max<int16_t>(sizeof(int16_t), type_traits/g' cpp/src/parquet/column_reader.cc""",
"""sed -i.bak 's/value_byte_size/value_byte_size)/g' cpp/src/parquet/column_reader.cc""",
],
sha256 = "a27971e2a71c412ae43d998b7b6d06201c7a3da382c804dcdc4a8126ccbabe67",
strip_prefix = "arrow-apache-arrow-4.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-4.0.0.tar.gz",
"https://github.com/apache/arrow/archive/apache-arrow-4.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 Expand Up @@ -1135,13 +1135,3 @@ http_archive(
"https://github.com/apache/orc/archive/refs/tags/rel/release-1.6.7.tar.gz",
],
)

http_archive(
name = "xsimd",
build_file = "//third_party:xsimd.BUILD",
sha256 = "45337317c7f238fe0d64bb5d5418d264a427efc53400ddf8e6a964b6bcb31ce9",
strip_prefix = "xsimd-7.5.0",
urls = [
"https://github.com/xtensor-stack/xsimd/archive/refs/tags/7.5.0.tar.gz",
],
)
4 changes: 2 additions & 2 deletions tensorflow_io/core/kernels/csv_kernels.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class CSVReadable : public IOReadableInterface {
csv_file_.reset(new ArrowRandomAccessFile(file_.get(), file_size_));

auto result = ::arrow::csv::TableReader::Make(
::arrow::default_memory_pool(), ::arrow::io::default_io_context(),
csv_file_, ::arrow::csv::ReadOptions::Defaults(),
::arrow::default_memory_pool(), csv_file_,
::arrow::csv::ReadOptions::Defaults(),
::arrow::csv::ParseOptions::Defaults(),
::arrow::csv::ConvertOptions::Defaults());
if (!result.status().ok()) {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_read_text():
assert entries[k].numpy().decode() + "\n" == v.decode()


@pytest.mark.skip(reason="TODO")
@pytest.mark.xfail(reason="TODO")
def test_text_output_sequence():
"""Test case based on fashion mnist tutorial"""
fashion_mnist = tf.keras.datasets.fashion_mnist
Expand Down
1 change: 0 additions & 1 deletion third_party/arrow.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ cc_library(
"@rapidjson",
"@snappy",
"@thrift",
"@xsimd",
"@zlib",
"@zstd",
],
Expand Down
31 changes: 0 additions & 31 deletions third_party/xsimd.BUILD

This file was deleted.

0 comments on commit 22f4103

Please sign in to comment.