Skip to content
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

Minor: Further Clean-up in Enforce Sorting #14732

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

berkaysynnada
Copy link
Contributor

Which issue does this PR close?

  • Closes #.

Rationale for this change

This is a follow-up on #14650. @xudong963 had shown that rather than a change in the plan structure, the only change is possible in node payloads. So, update_sort_ctx_children() is no longer updating plans. Considering these, the new calls at update_plan_from_children() seem also redundant to me.

What changes are included in this PR?

Remove redundant update_plan_from_children() calls in enforce sorting where we know that the plan in the node is consistent with PlanContext children.

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the optimizer Optimizer rules label Feb 17, 2025
@berkaysynnada berkaysynnada reopened this Feb 17, 2025
Copy link
Contributor

@ozankabak ozankabak left a comment

Choose a reason for hiding this comment

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

LGTM - since this is fairly small and an obvious follow-up to recent earlier work, I will merge once CI passes

@ozankabak ozankabak merged commit 2f40f6c into apache:main Feb 19, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimizer Optimizer rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants