beyond1920 commented on code in PR #2844:
URL: https://github.com/apache/calcite/pull/2844#discussion_r915648465
##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -3380,6 +3384,66 @@ protected void validateFrom(
getNamespaceOrThrow(node, scope).validate(targetRowType);
}
+ protected void validateTableFunction(SqlCall node, SqlValidatorScope scope,
+ RelDataType targetRowType) {
+ // Dig out real call; TABLE() wrapper is just syntactic.
+ SqlCall call = node.operand(0);
+ if (call.getOperator() instanceof SqlTableFunction) {
+ SqlTableFunction tableFunction = (SqlTableFunction) call.getOperator();
Review Comment:
Currently, there is no valid case like this.
It requires argument of COLLECTION_TABLE must be a table function which is
already checked by ProcedureNamespace#validateImpl.
SqlValidatorTest#testCollectionTable cover these cases.
--
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]