tadeja opened a new pull request, #51461:
URL: https://github.com/apache/arrow/pull/51461

   ### Rationale for this change
   Fix #51220 - Parquet `write_table` options are not all accepted in dataset 
`ParquetFileWriteOptions` so `pyarrow.parquet.write_to_dataset( ...)` raises 
`TypeError: unexpected parquet write option:`
   for `bloom_filter_options` ,  `write_time_adjusted_to_utc` or `store_schema` 
   
   (Similar to past #37469)
   ### What changes are included in this PR?
   Add `bloom_filter_options`, `store_schema`, `write_time_adjusted_to_utc` to 
`ParquetFileWriteOptions`,
   also explicitly expose `bloom_filter_options` in 
`pyarrow.parquet.ParquetWriter`.
   Test writer options in `make_write_options`, and test three newly supported 
options in `write_to_dataset`
   
   ### Are these changes tested?
   Yes, [fork CI also 
passes](https://github.com/tadeja/arrow/actions/runs/35735268275)
   
   ### Are there any user-facing changes?
   Yes, users may now use `bloom_filter_options` ,  
`write_time_adjusted_to_utc` and `store_schema`
   in `pyarrow.parquet.write_to_dataset(...)` and in 
`ParquetFileFormat.make_write_options(...)` without raising TypeError.
   
   ### Was AI used for this PR?
   
   **PR code and description written by:**
   
   - [ ] Human
   - [ ] AI
   
   **Reviewed before submission by:**
   
   - [ ] Human
   - [ ] AI
   - [ ] Not reviewed


-- 
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]

Reply via email to