Unpublished opened a new issue, #5755: URL: https://github.com/apache/arrow-rs/issues/5755
**Describe the bug** `ByteArrayEncoder` creates a `FallbackEncoder` unconditionally: https://github.com/apache/arrow-rs/blob/1c869214e2cf25959750756a65a0c042444e5d5d/parquet/src/arrow/arrow_writer/byte_array.rs#L407 This results in allocating at least 10MB `MAX_BIT_WRITER_SIZE` **per column**: https://github.com/apache/arrow-rs/blob/1c869214e2cf25959750756a65a0c042444e5d5d/parquet/src/encodings/encoding/mod.rs#L314-L316 If the fallback encoder isn't used this result in huge unused allocations. **To Reproduce** Use `ArrowWriter` to write Strings with Parquet version 2 where `DELTA_BINARY_PACKED` is default. **Expected behavior** Less allocations, maybe lazily create the fallback encoder? **Additional context** -- 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]
