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

Remove Expr clones from SortExprs #13258

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

peter-toth
Copy link
Contributor

Which issue does this PR close?

Follow-up of #12177, part of #12193.

Rationale for this change

Expr clones can be costly, so let's avoid them if we can.

What changes are included in this PR?

This is a minor follow-up of #12177 to remove some Expr clones.

Are these changes tested?

Yes, with exiting UTs.

Are there any user-facing changes?

No.

@github-actions github-actions bot added logical-expr Logical plan and expressions optimizer Optimizer rules labels Nov 5, 2024
@peter-toth peter-toth force-pushed the remove-sort-expr-clones branch from ed51689 to 3b598ec Compare November 5, 2024 09:56
@github-actions github-actions bot added the core Core DataFusion crate label Nov 5, 2024
@peter-toth peter-toth force-pushed the remove-sort-expr-clones branch from 3b598ec to 47df15a Compare November 5, 2024 10:15
@peter-toth
Copy link
Contributor Author

cc @findepi, @alamb, @crepererum

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 @peter-toth -- this looks very nice to me

datafusion/expr/src/expr.rs Show resolved Hide resolved
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Copy link
Contributor

@crepererum crepererum 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

@crepererum crepererum merged commit 19779d8 into apache:main Nov 5, 2024
24 checks passed
@peter-toth
Copy link
Contributor Author

Thanks @alamb and @crepererum for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants