Skip to content

[SPARK-52486][SQL] Fix Spark Driver Planning OOM issue before Execution when enabling AQE #51184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhixingheyi-tian
Copy link
Contributor

@zhixingheyi-tian zhixingheyi-tian commented Jun 16, 2025

What changes were proposed in this pull request?

Before generating SubQuery Physical Plans, we need to filtering dynamicpruning expression which is not worthwhile.

Why are the changes needed?

During the join operations of a dozen partitioned fact tables in Spark-SQL, 8w+ subqueries were generated, ultimately causing a Driver OOM (Out-Of-Memory) error.

How was this patch tested?

Existing Unit Tests can cover this PR.

@github-actions github-actions bot added the SQL label Jun 16, 2025
@zhixingheyi-tian
Copy link
Contributor Author

HI @cloud-fan @MaxGekk @dongjoon-hyun

Please give a review.
Thanks!

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.

Thank you for making a PR, @zhixingheyi-tian . I have two comments.

  1. Please provide a reproducible example to clarify and validate your claim.
  2. Please revise the PR title more specifically because the current title is misleading because OOM depends on the situation. Technically, this PR cannot prevent all kind of Driver Planning OOM, right?

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.

2 participants