xiedeyantu commented on code in PR #4588:
URL: https://github.com/apache/calcite/pull/4588#discussion_r2443333903
##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -3699,6 +3699,20 @@ private void checkRollUpInUsing(SqlIdentifier identifier,
}
}
+ /** Get the number of scopes referenced by the specified node. */
+ private int getScopeCount(SqlNode node) {
+ SqlValidatorScope scope = scopes.get(node);
+ if (scope == null) {
+ // Not all nodes have an associated scope; count these as "1".
Review Comment:
Are you referring to cases like literal values where they might not find a
proper scope? Could you please add some detailed explanation?
--
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]