Skip to content

[SPARK-43979][SQL][FOLLOWUP] Handle non alias-only project case#42971

Closed
amaliujia wants to merge 2 commits intoapache:masterfrom
amaliujia:improve_simplification
Closed

[SPARK-43979][SQL][FOLLOWUP] Handle non alias-only project case#42971
amaliujia wants to merge 2 commits intoapache:masterfrom
amaliujia:improve_simplification

Conversation

@amaliujia
Copy link
Contributor

@amaliujia amaliujia commented Sep 18, 2023

What changes were proposed in this pull request?

simplifyPlanForCollectedMetrics still could need to handle non alias-only project case where the project contains a mixed of aliases and attributes. In such case simplifyPlanForCollectedMetrics should also drop the extra project for the plan check when it contains CollectedMetrics.

Why are the changes needed?

Improve simplifyPlanForCollectedMetrics so it handles more plan pattern.

Does this PR introduce any user-facing change?

NO

How was this patch tested?

UT

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

NO

@amaliujia
Copy link
Contributor Author

@cloud-fan

@github-actions github-actions bot added the SQL label Sep 18, 2023
@amaliujia amaliujia force-pushed the improve_simplification branch from e8ffd54 to 4dc5694 Compare September 20, 2023 02:17
@cloud-fan
Copy link
Contributor

The failed streaming test is unrelated, I'm merging it to master/3.5, thanks!

@cloud-fan cloud-fan closed this in d92d6f6 Sep 20, 2023
cloud-fan pushed a commit that referenced this pull request Sep 20, 2023
### What changes were proposed in this pull request?

`simplifyPlanForCollectedMetrics ` still could need to handle non alias-only project case where the project contains a mixed of aliases and attributes. In such case `simplifyPlanForCollectedMetrics` should also drop the extra project for the plan check when it contains CollectedMetrics.

### Why are the changes needed?

Improve `simplifyPlanForCollectedMetrics` so it handles more plan pattern.

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

NO

### How was this patch tested?

UT

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

NO

Closes #42971 from amaliujia/improve_simplification.

Authored-by: Rui Wang <rui.wang@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit d92d6f6)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
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