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


##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -778,6 +805,87 @@ private static int calculatePermuteOffset(List<SqlNode> 
selectItems) {
     return 0;
   }
 
+  private static boolean matchesExcludeNames(List<String> columnNames,
+      List<String> excludeNames, SqlNameMatcher nameMatcher) {
+    if (excludeNames.size() > columnNames.size()) {

Review Comment:
   Yes, excludeNamescan be either [deptno] or [emp, deptno], while 
columnNameswould be [emp, deptno] or [emp, empno].



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