-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Conversation
crosshashjoin
on subqueryaliases
sql/analyzer/indexed_joins.go
Outdated
@@ -721,6 +721,12 @@ func addCrossHashJoins(m *memo.Memo) error { | |||
return nil | |||
} | |||
|
|||
_, lIsSqa := join.Left.First.(*memo.SubqueryAlias) |
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.
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
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, 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.
This fixes 2 sqllogictests.