snuyanzin commented on code in PR #29368:
URL: https://github.com/apache/flink/pull/29368#discussion_r4167832678


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/CorrelatedFunctionTableFactory.java:
##########
@@ -91,7 +100,11 @@ private CorrelatedFunctionQueryOperation 
unwrapFromAlias(CallExpression call) {
                                                                                
     + alias)))
                             .collect(toList());
 
-            if (!isFunctionOfKind(children.get(0), FunctionKind.TABLE)) {
+            // SNAPSHOT is PROCESS_TABLE rather than TABLE but is valid in a 
LATERAL join.
+            Expression firstChild = children.get(0);
+            if (!isFunctionOfKind(children.get(0), FunctionKind.TABLE)

Review Comment:
   ```suggestion
               if (!isFunctionOfKind(firstChild, FunctionKind.TABLE)
   ```
   ?



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