010Soham opened a new pull request, #2844: URL: https://github.com/apache/iceberg-python/pull/2844
## What does this change do? When `write.target-file-size-bytes` is smaller than a single row, bin packing computed a 0 row chunk size and PyArrow raised a ValueError. This change clamps the chunk size to at least 1, so writes still succeed (one row per batch/file when needed). ## Why is this needed? Fixes a crash when users set a small target file size and attempt to write large records. ## How was this tested? - make lint - uv run python -m pytest tests/io/test_pyarrow.py -k "bin_pack_arrow_table" -v - make test (timed out at ~42%) -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
