Skip to content

implementation of parquet reader based on arrow #2136

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ http_archive(
sha256 = "14bf9bf97431b890e0ae5dca8f8904841d4883b8596a7108a42f5700ae58d711",
strip_prefix = "google-cloud-cpp-1.21.0",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/googleapis/google-cloud-cpp/archive/v1.21.0.tar.gz",
"https://github.com/googleapis/google-cloud-cpp/archive/v1.21.0.tar.gz",
],
)
Expand Down Expand Up @@ -174,11 +173,12 @@ http_archive(
http_archive(
name = "arrow",
build_file = "//third_party:arrow.BUILD",
sha256 = "57e13c62f27b710e1de54fd30faed612aefa22aa41fa2c0c3bacd204dd18a8f3",
strip_prefix = "arrow-apache-arrow-7.0.0",
patch_cmds = ["""sed -i.bak '24i\\'$'\\n#undef ARROW_WITH_OPENTELEMETRY\\n' cpp/src/arrow/util/tracing_internal.h"""],
sha256 = "19ece12de48e51ce4287d2dee00dc358fbc5ff02f41629d16076f77b8579e272",
strip_prefix = "arrow-apache-arrow-8.0.0",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/apache/arrow/archive/apache-arrow-7.0.0.tar.gz",
"https://github.com/apache/arrow/archive/apache-arrow-7.0.0.tar.gz",
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/apache/arrow/archive/apache-arrow-8.0.0.tar.gz",
"https://github.com/apache/arrow/archive/apache-arrow-8.0.0.tar.gz",
],
)

Expand Down
3 changes: 3 additions & 0 deletions tensorflow_io/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@@ArrowDataset
@@ArrowFeatherDataset
@@ArrowStreamDataset
@@ArrowParquetDataset
@@list_feather_columns
"""

Expand All @@ -26,13 +27,15 @@
from tensorflow_io.python.ops.arrow_dataset_ops import ArrowDataset
from tensorflow_io.python.ops.arrow_dataset_ops import ArrowFeatherDataset
from tensorflow_io.python.ops.arrow_dataset_ops import ArrowStreamDataset
from tensorflow_io.python.ops.arrow_dataset_ops import ArrowParquetDataset
from tensorflow_io.python.ops.arrow_dataset_ops import list_feather_columns


_allowed_symbols = [
"ArrowDataset",
"ArrowFeatherDataset",
"ArrowStreamDataset",
"ArrowParquetDataset",
"list_feather_columns",
]

Expand Down
Loading