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: remove clones in coerce_plan_expr_for_schema #12051

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

jonahgao
Copy link
Member

Which issue does this PR close?

N/A

Rationale for this change

In coerce_plan_expr_for_schema, we have clones of expressions and the logical plan, which should be avoided.

What changes are included in this PR?

Are these changes tested?

Yes. By existing tests.

Are there any user-facing changes?

Yes. coerce_plan_expr_for_schema is a public API whose parameter type has changed, but it is likely only used internally for Unions.

@github-actions github-actions bot added logical-expr Logical plan and expressions optimizer Optimizer rules labels Aug 18, 2024
Copy link
Contributor

@alamb alamb 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 @jonahgao -- this looks great

@alamb alamb merged commit 159ab17 into apache:main Aug 19, 2024
24 checks passed
@jonahgao jonahgao deleted the remove_clones branch August 20, 2024 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions optimizer Optimizer rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants