-
Notifications
You must be signed in to change notification settings - Fork 307
Support Apache Parquet format #21
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2582d3a
Add Apache Parquet support for TensorFlow Dataset
yongtang 1667fe3
Register ParquetDataset to dataset_ops.cc
yongtang 2aa05d2
Add python wrapper for ParquetDataset
yongtang ccc829b
Expose tensorflow_io.parquet.ParquetDataset in tensorflow_io namespace
yongtang 15e59e9
Add test case based on sample parquet file parquet_cpp_example.parquet
yongtang 3b3e3c6
Add Bazel BUILD file for tensorflow_io/parquet/BUILD
yongtang a2732f3
Add Snappy BUILD file
yongtang 6fc1370
Add Apache Arrow BUILD file
yongtang aba397e
Add Boost C++ Library BUILD file.
yongtang e7ef1de
Add Apache Thrift Library BUILD file
yongtang 5ad836e
Add Apache Parquet library BUILD file
yongtang 543da95
Fix parquet_dataset_ops.py file
yongtang add8b87
Update parquet_test.py fiel
yongtang 0018608
Add __init__.py files to parquet modules
yongtang 0232009
Fix alignment
yongtang 2e7afd0
Add //tensorflow_io/parquet:parquet_py to BUILD file
yongtang 3e42daf
Add instructons to build parquet_types.h and parquet_types.cpp
yongtang 1532441
Address further review feedbacks
yongtang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| licenses(["notice"]) # Apache 2.0 | ||
|
|
||
| package(default_visibility = ["//visibility:public"]) | ||
|
|
||
| filegroup( | ||
| name = "test_data", | ||
| srcs = glob(["python/kernel_tests/testdata/*"]), | ||
| ) | ||
|
|
||
| cc_binary( | ||
| name = 'python/ops/_parquet_ops.so', | ||
| srcs = [ | ||
| "kernels/parquet_dataset_ops.cc", | ||
| "ops/dataset_ops.cc", | ||
| ], | ||
| linkshared = 1, | ||
| deps = [ | ||
| "@local_config_tf//:libtensorflow_framework", | ||
| "@local_config_tf//:tf_header_lib", | ||
| "@parquet//:parquet", | ||
| ], | ||
| copts = ["-pthread", "-std=c++11", "-D_GLIBCXX_USE_CXX11_ABI=0", "-DNDEBUG"] | ||
| ) | ||
|
|
||
| py_library( | ||
| name = "parquet_ops_py", | ||
| srcs = ([ | ||
| "python/ops/parquet_dataset_ops.py", | ||
| ]), | ||
| data = [ | ||
| ":python/ops/_parquet_ops.so" | ||
| ], | ||
| srcs_version = "PY2AND3", | ||
| ) | ||
|
|
||
| py_test( | ||
| name = "parquet_py_test", | ||
| srcs = [ | ||
| "python/kernel_tests/parquet_test.py" | ||
| ], | ||
| main = "python/kernel_tests/parquet_test.py", | ||
| data = [ | ||
| ":test_data", | ||
| ], | ||
| deps = [ | ||
| ":parquet_ops_py", | ||
| ], | ||
| srcs_version = "PY2AND3", | ||
| ) | ||
|
|
||
| py_library( | ||
| name = "parquet_py", | ||
| srcs = ([ | ||
| "__init__.py", | ||
| "python/__init__.py", | ||
| "python/ops/__init__.py", | ||
| ]), | ||
| deps = [ | ||
| ":parquet_ops_py" | ||
| ], | ||
| srcs_version = "PY2AND3", | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Copyright 2018 The TensorFlow Authors. All Rights Reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # ============================================================================== | ||
| """Parquet Dataset. | ||
|
|
||
| @@ParquetDataset | ||
| """ | ||
|
|
||
| from __future__ import absolute_import | ||
| from __future__ import division | ||
| from __future__ import print_function | ||
|
|
||
| from tensorflow_io.parquet.python.ops.parquet_dataset_ops import ParquetDataset | ||
|
|
||
| from tensorflow.python.util.all_util import remove_undocumented | ||
|
|
||
| _allowed_symbols = [ | ||
| "ParquetDataset", | ||
| ] | ||
|
|
||
| remove_undocumented(__name__) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this note!