-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
LEFT JOIN against empty relation produces no rows #5394
Comments
I will be able to look into that in 2-3 hiurs. |
Hmm.. for some reason it gets rewritten into INNER join. |
|
I believe the bug is in PredicatePushdown.visitJoin |
Hmm... the initial plan (before pushdown may be wrong, too) |
Yeah - I tried to just remove original node in when filterFunction is present from PP.visitJoin |
As I said I will back on it ASAP. |
Another observation... in PredicatePushdown.visitJoin, |
I understand the problem. The proper solution is to move all the pushdown logic from This is not super trivial change. I think I can do it tomorrow Europe time (so it should be ready tomorrow in the morning in CA). If thing is really urgent I can hack sth. Possible options. I do not like any of those, and would rather craft proper solution at normal pace. But if needed I can do one of those quickly. Preferably (1). |
Let's fix it the right way. |
I have just noticed that putting this in But we run It seems that some extra information that push-down happend must be stored in |
Fixed |
This can be reproduced with the following test case:
The text was updated successfully, but these errors were encountered: