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

   ### What changes are included in this PR?
   
   If we partition on a categorical variable with "unobserved" categories 
(values present in the dictionary, but not in the actual data), the legacy path 
in `pq.write_to_dataset` currently creates empty files. The new dataset-based 
path already has the preferred behavior, and this PR fixes it for the legacy 
path and adds a test for both as well.
   
   This also fixes one of the pandas deprecation warnings listed in 
https://github.com/apache/arrow/issues/36412
   
   ### Are these changes tested?
   
   Yes
   
   ### Are there any user-facing changes?
   
   Yes, this no longer creates a hive-style directory with one empty file 
(parquet file with 0 rows) when users have unobserved categories. However, this 
aligns the legacy path with the new and default dataset-based path.


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