zjuwangg commented on a change in pull request #10272: [FLINK-14878]Support `use catalog` through sqlUpdate() method in TableEnvironment URL: https://github.com/apache/flink/pull/10272#discussion_r348873978
########## File path: flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlUseCatalog.java ########## @@ -35,7 +35,7 @@ */ public class SqlUseCatalog extends SqlCall { - public static final SqlSpecialOperator OPERATOR = new SqlSpecialOperator("USE CATALOG", SqlKind.OTHER); + public static final SqlSpecialOperator OPERATOR = new SqlSpecialOperator("USE CATALOG", SqlKind.OTHER_DDL); Review comment: Both `validate(sqlNode: SqlNode)` methods in `FlinkPlannerImpl` in flink-planner/blink-planner will validate row type, SqlKind.OTHER kind will fail the validation. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services