Steve Carlin has posted comments on this change. ( http://gerrit.cloudera.org:8080/21908 )
Change subject: IMPALA-13429: Calcite planner crashing with outer join ...................................................................... Patch Set 2: (1 comment) http://gerrit.cloudera.org:8080/#/c/21908/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/rel/node/ImpalaJoinRel.java File java/calcite-planner/src/main/java/org/apache/impala/calcite/rel/node/ImpalaJoinRel.java: http://gerrit.cloudera.org:8080/#/c/21908/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/rel/node/ImpalaJoinRel.java@444 PS2, Line 444: // left side expr may only contain inputrefs from left side. : // right side expr may only contain inputrefs from right side. > For my own understanding, let me work through some examples. Suppose we are So I was a bit surprised too that #5 was not pushed down. But I ran this in a later local commit and there was a case where it wasn't pushed down when it was a left join. #6 should theoretically get pushed down too. Maybe it always does? I haven't replicated this one. But the error I got on the backend was that it was looking up a left side SlotRef using the left tuple and the right side SlotRef using the right tuple. So I would think #6 would be ok with this new logic. -- To view, visit http://gerrit.cloudera.org:8080/21908 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I4ae2d257fa58f3a58079b6aa551c32ffda7d28cf Gerrit-Change-Number: 21908 Gerrit-PatchSet: 2 Gerrit-Owner: Steve Carlin <[email protected]> Gerrit-Reviewer: Aman Sinha <[email protected]> Gerrit-Reviewer: Anonymous Coward (816) Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Steve Carlin <[email protected]> Gerrit-Comment-Date: Thu, 10 Oct 2024 14:42:13 +0000 Gerrit-HasComments: Yes
