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

only use crosshashjoin on subqueryaliases #2339

Merged
merged 12 commits into from
Feb 24, 2024
Merged

only use crosshashjoin on subqueryaliases #2339

merged 12 commits into from
Feb 24, 2024

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Feb 22, 2024

This fixes 2 sqllogictests.

@jycor jycor changed the title remove crosshashjoins only use crosshashjoin on subqueryaliases Feb 22, 2024
@jycor jycor changed the title only use crosshashjoin on subqueryaliases only use crosshashjoin on subqueryaliases Feb 22, 2024
@@ -721,6 +721,12 @@ func addCrossHashJoins(m *memo.Memo) error {
return nil
}

_, lIsSqa := join.Left.First.(*memo.SubqueryAlias)
Copy link
Contributor

Choose a reason for hiding this comment

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

there might be filters or projections in-between. you'll probably want to check the list of TableIdNodes in each group for a single SQA

Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

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

lgtm, we should add a comment of why we added the fast reorder for cross joins, and continue to chase the source of the dropped filter if possible, since there are probably cases not fixed by the fast reorder.

@jycor jycor merged commit d75d49c into main Feb 24, 2024
7 checks passed
@jycor jycor deleted the james/join branch February 24, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants