hackergin commented on code in PR #22939:
URL: https://github.com/apache/flink/pull/22939#discussion_r1254467327


##########
flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -2624,7 +2624,7 @@ private SqlNode registerFrom(
                                 usingScope,
                                 register,
                                 operand,
-                                enclosingNode,
+                                call,

Review Comment:
   @luoyuxia  I modify this as  time travel with as expression not work well .
   SELECT * FROM test_tb FOR SYSTEM_TIME AF OF  TIMESTAMP '2023-01-01 01:00' as 
t2  
   
   If I don't modity this,  in FlinkCalciteSqlValidator:registerNamespace 
method, ns.getEnclosingNode will not be SqlSnapshot. 



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