[SPARK-39328][SQL][TESTS] Fix flaky test SPARK-37753: Inhibit broadcast in left outer join when there are many empty partitions on outer/left side
#52388
+9
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Improve test
SPARK-37753: Inhibit broadcast in left outer join when there are many empty partitions on outer/left side
ofAdaptiveQueryExecSuite
Why are the changes needed?
This test appears to always succeed in the Apache GitHub Action runner environment, But some environments, test does not seem to proceed as intended.
On my environment:
4.18.0-553.8.1.el8_10.x86_64
Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz
64G Mem
And ran test in master branch following the guide of official documentation
even increasing the test's timeout to 1500 seconds results to failure after lots of retries.
The test says
It seems test failure occurs with very high probability by loading the ‘right side’ completes first.
While the reason is unclear, I believe it would be better to regulate the subquery loading speed in a predictable manner via applying simple udf rather than retrying until both sides load in the desired order.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Rerun the test.
Was this patch authored or co-authored using generative AI tooling?
No.