snuyanzin commented on code in PR #4882:
URL: https://github.com/apache/calcite/pull/4882#discussion_r3070277064


##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -2640,7 +2640,7 @@ private SqlNode registerFrom(
     case MATCH_RECOGNIZE:
       registerMatchRecognize(parentScope, usingScope,
           (SqlMatchRecognize) node, enclosingNode, alias, forceNullable);
-      return node;
+      return newNode;

Review Comment:
   it is initialized at 
https://github.com/apache/calcite/blob/37448dc565f8ab3c74c45b2f0ded3b6642144a4e/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java#L2539-L2540
   and 
   
https://github.com/apache/calcite/blob/37448dc565f8ab3c74c45b2f0ded3b6642144a4e/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java#L2568-L2574
   
   so need to reuse it



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