Skip to content

Conversation

@jimexist
Copy link
Member

Which issue does this PR close?

Closes #593

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@jimexist jimexist changed the title fix 593 fix 593, reduce cloning by taking ownership in logical planner's from fn Jun 23, 2021
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.

Yes, I really like this change (there is far too much cloning in the creation of plans (and Exprs generally). It is an API change so I think maybe we should leave it open for a few days to see if anyone else has opinions

@alamb alamb added the api change Changes the API exposed to users of the crate label Jun 23, 2021
Copy link
Member

@jorgecarleitao jorgecarleitao left a comment

Choose a reason for hiding this comment

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

Solid improvement to me 👍 Tjhanks @jimexist !

@houqp
Copy link
Member

houqp commented Jun 24, 2021

If we really want to make this backwards compatible, we could use impl Into<LogicalPlan> as the argument type, see #615.

@jimexist
Copy link
Member Author

If we really want to make this backwards compatible, we could use impl Into<LogicalPlan> as the argument type, see #615.

thanks for the suggestion. unless it's a goal, i'd like to keep this simple for the moment.

@alamb alamb merged commit ffb195c into apache:master Jun 27, 2021
@alamb
Copy link
Contributor

alamb commented Jun 27, 2021

Thanks again @jimexist

@jimexist jimexist deleted the fix-593 branch June 27, 2021 12:28
unkloud pushed a commit to unkloud/datafusion that referenced this pull request Mar 23, 2025
H0TB0X420 pushed a commit to H0TB0X420/datafusion that referenced this pull request Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api change Changes the API exposed to users of the crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

logical plan builder from method should take owned value as input

5 participants