You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, a left outer join with join condition TRUE would still generate null rows when the right table is empty, making it nonequivalent to an inner join.
I believe SqlKind.IS_TRUE indicates the IS TRUE operator, not that the condition is trivially true. Translating R1 LEFT JOIN R2 ON P IS TRUE into R1 INNER JOIN R2 ON P IS TRUE for arbitrary predicate P is clearly not right.
Please let me know if I am misunderstanding anything. Thank you!
The text was updated successfully, but these errors were encountered:
The following logic in
JoinParser.java
translates an outer join with join condition that is trivially true into an inner join with the same condition.spes/src/main/java/AlgeNodeParser/JoinParser.java
Lines 44 to 49 in 8049f98
However, a left outer join with join condition
TRUE
would still generate null rows when the right table is empty, making it nonequivalent to an inner join.The branch right above also seems off.
spes/src/main/java/AlgeNodeParser/JoinParser.java
Lines 41 to 43 in 8049f98
I believe
SqlKind.IS_TRUE
indicates theIS TRUE
operator, not that the condition is trivially true. TranslatingR1 LEFT JOIN R2 ON P IS TRUE
intoR1 INNER JOIN R2 ON P IS TRUE
for arbitrary predicateP
is clearly not right.Please let me know if I am misunderstanding anything. Thank you!
The text was updated successfully, but these errors were encountered: