-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix: Remove duplicate filter from CrossJoin
unparsing
#17382
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
self.select_to_sql_recursively( | ||
right_plan.as_ref(), | ||
query, | ||
select, | ||
&mut right_relation, | ||
)?; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe someone more knowledgeable could provide some context to this repeated call, but since all tests still work there doesn't seem to be a problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree -- it seems like a copy/paste bug to me.
My git archeology suggests it came in the initial PR from @backkem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @jonathanc-n and @nuno-faria for the review
Which issue does this PR close?
Rationale for this change
What changes are included in this PR?
Removes the second recursive traversal inside
LogicalPlan::Join
, it was causing duplicate filters to pop up when gathering filters. Not sure what the reasoning for this second right side traversal was in the first place.Are these changes tested?
Are there any user-facing changes?