Skip to content

[SPARK-55289][SQL][FOLLOWUP] Fix flaky test in-order-by.sql by disabling broadcast join#54663

Closed
yaooqinn wants to merge 1 commit intoapache:masterfrom
yaooqinn:SPARK-55289-followup
Closed

[SPARK-55289][SQL][FOLLOWUP] Fix flaky test in-order-by.sql by disabling broadcast join#54663
yaooqinn wants to merge 1 commit intoapache:masterfrom
yaooqinn:SPARK-55289-followup

Conversation

@yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Mar 6, 2026

What changes were proposed in this pull request?

Same fix as #54072 (SPARK-55289) for in-set-operations.sql. Adds --SET spark.sql.autoBroadcastJoinThreshold=-1 to in-order-by.sql to prevent OOM from BroadcastHashJoin accumulating hash tables on memory-constrained CI runners.

Why are the changes needed?

in-order-by.sql intermittently fails on CI with SparkOutOfMemoryError for the same root cause as in-set-operations.sql — complex correlated IN-subqueries with multiple BroadcastHashJoin operations exceeding JVM heap under memory pressure.

Does this PR introduce any user-facing change?

No. Test-only change.

How was this patch tested?

Golden files regenerated. Minor row reordering for rows with identical sort keys (expected when switching from BroadcastHashJoin to SortMergeJoin).

Was this patch authored or co-authored using generative AI tooling?

Yes, co-authored with GitHub Copilot.

…ing broadcast join

Same fix as SPARK-55289 for in-set-operations.sql. Adds
`--SET spark.sql.autoBroadcastJoinThreshold=-1` to in-order-by.sql
to prevent OOM from BroadcastHashJoin accumulating hash tables on
memory-constrained CI runners.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @yaooqinn .

@dongjoon-hyun
Copy link
Member

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants