furqan-khan07 commented on issue #30859: URL: https://github.com/apache/arrow/issues/30859#issuecomment-6938826711
Still reproduces on pyarrow 26.0.1 with the interval example: `pq.write_to_dataset` and `ds.write_dataset` both leave 0-byte `.parquet` files behind (one per partition directory when `partition_cols` is used). `pq.write_table` with the same table raises without leaving a file. I'd like to work on a fix. Two ways I see: 1. Check that the schema converts to Parquet before the dataset writer opens any file. Covers schema errors like this one only. 2. Delete the files the dataset writer created when a write fails. Covers later errors too, but means deleting files in the user's directory. Is one of these preferred? I'd lean towards 1. -- 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]
