Skip to content

[AURON #2457] Fix per-partition job submission in NativeCollectLimit - #2458

Open
lyne7-sc wants to merge 2 commits into
apache:masterfrom
lyne7-sc:fix/native-collect-limit-job-submission
Open

[AURON #2457] Fix per-partition job submission in NativeCollectLimit#2458
lyne7-sc wants to merge 2 commits into
apache:masterfrom
lyne7-sc:fix/native-collect-limit-job-submission

Conversation

@lyne7-sc

@lyne7-sc lyne7-sc commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

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?

  • Yes
  • No

If yes, include: Generated-by: GPT-5

ASF guidance: https://www.apache.org/legal/generative-tooling.html

@github-actions github-actions Bot added the spark label Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NativeCollectLimit submits one job per scanned partition

1 participant