Rich-T-kid opened a new issue, #12555: URL: https://github.com/apache/arrow-rs/issues/12555
DataFusion RepartitionExec routes one input batch into many output coalescers. `BatchCoalescer::push_batch_with_indices` currently consumes the `RecordBatch`, which forces callers to shallow-clone the batch for every non-empty output even though the indexed copy only uses it synchronously. For wide batches at high fanout, that clones every column `Arc` once per output. I propose adding a borrowed indexed-push variant and keeping the existing owned method as a delegating, source-compatible wrapper. DataFusion can then retain one `Arc<RecordBatch>` per input and share it across all output selections. Using ClickBench Q32 on top of the current combined RepartitionExec work, 20-pair ABBA lockstep runs produced median candidate/base ratios of 0.913, 0.857, 0.774, and 0.709 at 32, 128, 256, and 512 output partitions respectively. -- 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]
