Skip to content

Commit 2824d21

Browse files
andylou2tfx-copybara
authored andcommitted
open source parquet_dataset.
PiperOrigin-RevId: 303827624
1 parent 9a4a4f7 commit 2824d21

22 files changed

+3426
-3
lines changed

BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ sh_binary(
2323
testonly = True, # Some files are testonly
2424
srcs = ["build_pip_package.sh"],
2525
data = [
26+
# :struct2tensor_kernels_and_ops is not required to build the wheel,
27+
# but is included here as a sanity check to make sure our kernels
28+
# and ops are not broken.
29+
"//struct2tensor:struct2tensor_kernels_and_ops",
30+
"//struct2tensor:parquet",
2631
"//struct2tensor/ops:struct2tensor_ops",
2732
"//struct2tensor/proto:query_metadata_py_pb2",
2833
"//struct2tensor/test:dependent_test_py_pb2",

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def has_ext_modules(self):
6161
'protobuf>=3.8.0',
6262
'tensorflow>=1.15,<3',
6363
'tensorflow_metadata>=0.13.0',
64+
'pyarrow>=0.15,<1',
6465
],
6566
# Add in any packaged data.
6667
include_package_data=True,

struct2tensor/BUILD

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,21 @@ s2t_pytype_library(
143143
],
144144
)
145145

146+
s2t_pytype_library(
147+
name = "parquet",
148+
srcs = [
149+
"expression_impl/parquet.py",
150+
],
151+
deps = [
152+
":expression",
153+
":map_prensor_to_prensor",
154+
":path",
155+
":placeholder",
156+
":prensor",
157+
"//struct2tensor/ops:gen_parquet_dataset_py",
158+
],
159+
)
160+
146161
s2t_pytype_library(
147162
name = "proto_test_util",
148163
testonly = 1,

0 commit comments

Comments
 (0)