Skip to content

Conversation

@ulysses-you
Copy link
Contributor

This pr is backport #44074 for branch-3.5 since 3.5 is a lts version

What changes were proposed in this pull request?

This pr adds a new extension entrance queryPostPlannerStrategyRules in SparkSessionExtensions. It will be applied between plannerStrategy and queryStagePrepRules in AQE, so it can get the whole plan before injecting exchanges.

Why are the changes needed?

3.5 is a lts version

Does this PR introduce any user-facing change?

no, only for develop

How was this patch tested?

add test

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

no

Closes #44074 from ulysses-you/post-planner.

Authored-by: ulysses-you [email protected]

…y rules in SparkSessionExtensions

### What changes were proposed in this pull request?

This pr adds a new extension entrance `queryPostPlannerStrategyRules` in `SparkSessionExtensions`. It will be applied between plannerStrategy and queryStagePrepRules in AQE, so it can get the whole plan before injecting exchanges.

### Why are the changes needed?

a part of apache#44013

### Does this PR introduce _any_ user-facing change?

no, only for develop

### How was this patch tested?

add test

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

no

Closes apache#44074 from ulysses-you/post-planner.

Authored-by: ulysses-you <[email protected]>
Signed-off-by: youxiduo <[email protected]>
@github-actions github-actions bot added the SQL label Feb 6, 2024
@ulysses-you
Copy link
Contributor Author

cc @cloud-fan

yaooqinn pushed a commit that referenced this pull request Feb 6, 2024
…rategy rules in SparkSessionExtensions

This pr is backport #44074 for branch-3.5 since 3.5 is a lts version

### What changes were proposed in this pull request?

This pr adds a new extension entrance `queryPostPlannerStrategyRules` in `SparkSessionExtensions`. It will be applied between plannerStrategy and queryStagePrepRules in AQE, so it can get the whole plan before injecting exchanges.

### Why are the changes needed?

3.5 is a lts version

### Does this PR introduce _any_ user-facing change?

no, only for develop

### How was this patch tested?

add test

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

no

Closes #44074 from ulysses-you/post-planner.

Authored-by: ulysses-you <ulyssesyou18gmail.com>

Closes #45037 from ulysses-you/SPARK-46170.

Authored-by: ulysses-you <[email protected]>
Signed-off-by: Kent Yao <[email protected]>
@yaooqinn yaooqinn closed this Feb 6, 2024
@yaooqinn
Copy link
Member

yaooqinn commented Feb 6, 2024

merged to branch 3.5

@ulysses-you ulysses-you deleted the SPARK-46170 branch February 6, 2024 07:18
@cloud-fan
Copy link
Contributor

late LGTM

turboFei pushed a commit to turboFei/spark that referenced this pull request Nov 6, 2025
…rategy rules in SparkSessionExtensions (apache#366)

This pr is backport apache#44074 for branch-3.5 since 3.5 is a lts version

### What changes were proposed in this pull request?

This pr adds a new extension entrance `queryPostPlannerStrategyRules` in `SparkSessionExtensions`. It will be applied between plannerStrategy and queryStagePrepRules in AQE, so it can get the whole plan before injecting exchanges.

### Why are the changes needed?

3.5 is a lts version

### Does this PR introduce _any_ user-facing change?

no, only for develop

### How was this patch tested?

add test

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

no

Closes apache#44074 from ulysses-you/post-planner.

Authored-by: ulysses-you <ulyssesyou18gmail.com>

Closes apache#45037 from ulysses-you/SPARK-46170.

Authored-by: ulysses-you <[email protected]>

Signed-off-by: Kent Yao <[email protected]>
Co-authored-by: ulysses-you <[email protected]>
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.

3 participants