lyne7-sc opened a new pull request, #2458: URL: https://github.com/apache/auron/pull/2458
# Which issue does this PR close? Closes #2457 # Rationale for this change `NativeCollectLimitBase.executeCollect()` currently uses `toLocalIterator`, which submits a separate Spark job for every scanned partition. For empty or highly selective inputs, this can produce many unnecessary jobs and make driver-side scheduling dominate query execution. # What changes are included in this PR? - Replace the `toLocalIterator` collection loop with `executeTake`. - Add a regression test to verify that partitions are scanned in batches. # Are there any user-facing changes? Queries over empty or sparse partitions may submit fewer Spark jobs. # How was this patch tested? Added a regression test to `AuronExecSuite`. # Was this patch authored or co-authored using generative AI tooling? - [x] Yes - [ ] No If yes, include: `Generated-by: GPT-5` ASF guidance: https://www.apache.org/legal/generative-tooling.html -- 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]
