-
Notifications
You must be signed in to change notification settings - Fork 608
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
feat(ir): more flexible dereferencing for join right-hand side #8916
Conversation
cc @mfatihaktas |
There is a more complicated test case in the impala test suite, inspecting it. |
The multi-table dereference mapping calculation must be slightly smarter by tracking the distance from the target relations and picking the closest one (unless there are multiple ones at the same distance in which case an ambiguity error should be raised). |
@kszucs The two failures are pretty easy to fix. Otherwise, is this PR ready to go in? |
8ac7024
to
462a58a
Compare
CI is green if @kszucs is happy with this. |
@@ -62,7 +62,7 @@ INNER JOIN ( | |||
GROUP BY | |||
1 | |||
) AS `t10` | |||
ON `t8`.`d` = `t10`.`d` | |||
ON `t10`.`d` = `t10`.`d` |
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.
This doesn't look correct to me. Should be t8
as it was before.
No, I am not happy with this yet. |
Should we close this in favor of #8992? |
Yes |
The join dereferencing logic required explicit references to the exact right hand side table which disallowed more convenient syntaxes like
t1.join(t2.at_time(t1.c), [t1.a == t2.d])
.Resolves #8581