mihaibudiu commented on code in PR #5419:
URL: https://github.com/apache/calcite/pull/5419#discussion_r4581323916


##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -770,6 +765,38 @@ private SqlNode expandExprFromJoin(SqlJoin join, 
SqlIdentifier identifier,
     }
   }
 
+  /** Returns the column {@code name} of the left or right input of a join. */

Review Comment:
   I would document the parameters; "left" could be interpreted as "left join" 
for example.



##########
core/src/test/resources/sql/join.iq:
##########
@@ -576,6 +576,62 @@ order by deptno, ename;
 
 !ok
 
+# [CALCITE-7940] AssertionError when selecting a common column of three tables 
joined with USING.
+select deptno, count(*) as c

Review Comment:
   please add a comment describing how these results were validated



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to