hcrosse opened a new pull request, #21341: URL: https://github.com/apache/datafusion/pull/21341
## Which issue does this PR close? Closes #21311. ## Rationale for this change `BatchPartitioner::partition_iter` is already used internally as the core implementation behind the public `partition` method, and was intentionally factored out to support both sync and async consumption patterns. However, since it's private, downstream crates like Ballista can't use the iterator directly and are forced to run both CPU-bound partitioning and I/O together in a sync closure. ## What changes are included in this PR? Changed `partition_iter` visibility from private to public. ## Are these changes tested? The existing tests for `BatchPartitioner` cover `partition_iter` indirectly through the `partition` method, which delegates to it. No behavioral change was made. ## Are there any user-facing changes? `BatchPartitioner::partition_iter` is now part of the public API. This is a purely additive change with no breaking impact. -- 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]
