nurpax commented on issue #40800:
URL: https://github.com/apache/arrow/issues/40800#issuecomment-2020957896

   You mean the below code
   
   ```
   parquet_path = f"dbg/index.parquet"
   with pq.ParquetWriter(parquet_path, schema, compression='snappy', 
filesystem=s3_fs) as w:
     for batch in batches:
         b = pa.RecordBatch.from_pydict(batch, schema=schema)
         w.write_batch(b)
   ```
   
   would commit even if an exception is thrown?  I'm not sure what's the right 
way to "close" the file handle without committing any partially written results 
to s3.


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