mihaibudiu commented on code in PR #4588:
URL: https://github.com/apache/calcite/pull/4588#discussion_r2446242061
##########
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:
Not really literal values, these are all nodes that represent relations
(will be converted to Rel nodes).
But while every such node has a namespace attached, not every one of them
introduces a new scope.
I will try to write something, but I have discovered this stuff by much
trial and error.
--
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]