tadeja commented on code in PR #47498:
URL: https://github.com/apache/arrow/pull/47498#discussion_r4036824176
##########
python/pyarrow/tests/test_dataset.py:
##########
@@ -5936,6 +5936,19 @@ def
test_checksum_write_dataset_read_dataset_to_table(tempdir):
).to_table()
[email protected]
[email protected]("cdc", [
+ True,
+ {"min_chunk_size": 32 * 1024, "max_chunk_size": 64 * 1024},
+])
+def test_write_dataset_content_defined_chunking(tempdir, cdc):
+ expected_table = pa.table({'a': [1, 2, 3]})
+ fmt = ds.ParquetFileFormat()
+ opts = fmt.make_write_options(use_content_defined_chunking=cdc)
+ ds.write_dataset(expected_table, tempdir, format=fmt, file_options=opts)
+ assert ds.dataset(tempdir, format=fmt).to_table().equals(expected_table)
Review Comment:
The test is for `ParquetFileWriteOptions` not rejecting
`use_content_defined_chunking` parameter anymore.
( Chunking is tested by existing
[`test_parquet_content_defined_chunking`.](https://github.com/apache/arrow/blob/275b44b0cdcd2c84bdf5f92aa3a5f3dd76863a91/python/pyarrow/tests/parquet/test_parquet_writer.py#L365)
)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]