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 clone in optimizer #11315

Merged
merged 2 commits into from
Jul 7, 2024
Merged

Minor: Remove clone in optimizer #11315

merged 2 commits into from
Jul 7, 2024

Conversation

jayzhan211
Copy link
Contributor

Which issue does this PR close?

Part of #4628 and #9637

Closes #.

Rationale for this change

There are still clones left to be removed

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Signed-off-by: jayzhan211 <[email protected]>
@github-actions github-actions bot added the optimizer Optimizer rules label Jul 7, 2024
Signed-off-by: jayzhan211 <[email protected]>
@jayzhan211 jayzhan211 marked this pull request as ready for review July 7, 2024 08:10
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.

Looks good to me -- thank you @jayzhan211

let new_join = Arc::new(LogicalPlan::Join(Join {
left: Arc::new((*join.left).clone()),
right: Arc::new((*join.right).clone()),
left: join.left,
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

@alamb alamb merged commit 5aa7c4a into apache:main Jul 7, 2024
23 checks passed
@jayzhan211 jayzhan211 deleted the rm-clone branch July 8, 2024 00:59
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
* rm clone

Signed-off-by: jayzhan211 <[email protected]>

* outer join + fix test

Signed-off-by: jayzhan211 <[email protected]>

---------

Signed-off-by: jayzhan211 <[email protected]>
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