xiedeyantu commented on code in PR #4671:
URL: https://github.com/apache/calcite/pull/4671#discussion_r2612319188


##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -554,7 +555,11 @@ private boolean isNonAggregatedNonGroupedColumn(SqlNode 
node, SqlSelect select)
     }
 
     if (node instanceof SqlCall) {
-      return ((SqlCall) node).getOperandList().stream()
+      final SqlCall call = (SqlCall) node;

Review Comment:
   This is because the columns following SELECT BY may have aliases, which 
causes columns that should exist in GROUP BY to be wrapped in an ANY_VALUE 
layer, so an extra layer of parsing is required.



-- 
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