Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[TEST ONLY DON'T MERGE] Add s3 dataset #1700

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
sudo python3 --version
sudo python3 -m pip install dataclasses
sudo python3 -m pip install setuptools
sudo python3 -m pip install --upgrade protobuf==3.20.0
sudo python3 -m pip install -U git+https://github.com/tensorflow/docs
find docs -name '*.ipynb' | xargs python3 -m tensorflow_docs.tools.nbfmt
echo "Check for failed fmt: "
Expand Down
9 changes: 5 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,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
@@ArrowS3Dataset
@@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 ArrowS3Dataset
from tensorflow_io.python.ops.arrow_dataset_ops import list_feather_columns


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

Expand Down
Loading