Skip to content

Commit 2df491c

Browse files
authored
Update arrow to 4.0.0 (#1397) (#1417)
* Update arrow to 4.0.0 Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Add xsimd dependency Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Disable failing tests Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
1 parent 41e9987 commit 2df491c

File tree

4 files changed

+48
-6
lines changed

4 files changed

+48
-6
lines changed

WORKSPACE

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,11 @@ http_archive(
272272
"""sed -i.bak 's/type_traits/std::max<int16_t>(sizeof(int16_t), type_traits/g' cpp/src/parquet/column_reader.cc""",
273273
"""sed -i.bak 's/value_byte_size/value_byte_size)/g' cpp/src/parquet/column_reader.cc""",
274274
],
275-
sha256 = "fc461c4f0a60e7470a7c58b28e9344aa8fb0be5cc982e9658970217e084c3a82",
276-
strip_prefix = "arrow-apache-arrow-3.0.0",
275+
sha256 = "a27971e2a71c412ae43d998b7b6d06201c7a3da382c804dcdc4a8126ccbabe67",
276+
strip_prefix = "arrow-apache-arrow-4.0.0",
277277
urls = [
278-
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/apache/arrow/archive/apache-arrow-3.0.0.tar.gz",
279-
"https://github.com/apache/arrow/archive/apache-arrow-3.0.0.tar.gz",
278+
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/apache/arrow/archive/apache-arrow-4.0.0.tar.gz",
279+
"https://github.com/apache/arrow/archive/apache-arrow-4.0.0.tar.gz",
280280
],
281281
)
282282

@@ -1135,3 +1135,13 @@ http_archive(
11351135
"https://github.com/apache/orc/archive/refs/tags/rel/release-1.6.7.tar.gz",
11361136
],
11371137
)
1138+
1139+
http_archive(
1140+
name = "xsimd",
1141+
build_file = "//third_party:xsimd.BUILD",
1142+
sha256 = "45337317c7f238fe0d64bb5d5418d264a427efc53400ddf8e6a964b6bcb31ce9",
1143+
strip_prefix = "xsimd-7.5.0",
1144+
urls = [
1145+
"https://github.com/xtensor-stack/xsimd/archive/refs/tags/7.5.0.tar.gz",
1146+
],
1147+
)

tensorflow_io/core/kernels/csv_kernels.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class CSVReadable : public IOReadableInterface {
4545
csv_file_.reset(new ArrowRandomAccessFile(file_.get(), file_size_));
4646

4747
auto result = ::arrow::csv::TableReader::Make(
48-
::arrow::default_memory_pool(), csv_file_,
49-
::arrow::csv::ReadOptions::Defaults(),
48+
::arrow::default_memory_pool(), ::arrow::io::default_io_context(),
49+
csv_file_, ::arrow::csv::ReadOptions::Defaults(),
5050
::arrow::csv::ParseOptions::Defaults(),
5151
::arrow::csv::ConvertOptions::Defaults());
5252
if (!result.status().ok()) {

third_party/arrow.BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ cc_library(
120120
"@rapidjson",
121121
"@snappy",
122122
"@thrift",
123+
"@xsimd",
123124
"@zlib",
124125
"@zstd",
125126
],

third_party/xsimd.BUILD

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package(default_visibility = ["//visibility:public"])
2+
3+
licenses(["notice"]) # BSD 3-Clause
4+
5+
exports_files(["LICENSE"])
6+
7+
cc_library(
8+
name = "xsimd",
9+
srcs = [],
10+
hdrs = glob(
11+
[
12+
"include/xsimd/*.hpp",
13+
"include/xsimd/config/*.hpp",
14+
"include/xsimd/math/*.hpp",
15+
"include/xsimd/memory/*.hpp",
16+
"include/xsimd/stl/*.hpp",
17+
"include/xsimd/types/*.hpp",
18+
],
19+
exclude = [
20+
],
21+
),
22+
copts = [],
23+
defines = [],
24+
includes = [
25+
"include",
26+
],
27+
linkopts = [],
28+
visibility = ["//visibility:public"],
29+
deps = [
30+
],
31+
)

0 commit comments

Comments
 (0)