tustvold opened a new issue, #2197: URL: https://github.com/apache/arrow-rs/issues/2197
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** The skip records API added to the ArrayReader trait as part of #1998 does not provide a way to combine multiple selections into the same batch. This is unfortunate as columnar query engines will often want consistently large `RecordBatch` so that any dispatch overheads can be amortised over many rows. Whilst it could concatenate batches together, e.g. DataFusion's CoalesceBatchesExec, it would be more efficient to do this directly on read and eliminate an additional copy. Ultimately doing this is supported by the underlying machinery, i.e. RecordReader, it just isn't exposed by ArrayReader **Describe the solution you'd like** Much like `RecordReader` we need to separate `read_records` from consuming the resulting data, i.e. replace `ArrayReader::next_batch` with `ArrayReader::read_records` and `ArrayReader::consume_batch`. **Describe alternatives you've considered** We could not do this, however, if we are going to make this change we should probably do it before we make the record skipping API public (#1792) -- 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]
