KurtYoung commented on a change in pull request #8844: 
[FLINK-12951][table-planner] Add logic to bridge DDL to table source(…
URL: https://github.com/apache/flink/pull/8844#discussion_r301487778
 
 

 ##########
 File path: 
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/calcite/FlinkPlannerImpl.scala
 ##########
 @@ -98,13 +102,23 @@ class FlinkPlannerImpl(
 
   def validate(sqlNode: SqlNode): SqlNode = {
     val catalogReader = catalogReaderSupplier.apply(false)
+    // do pre-validate rewrite.
+    sqlNode.accept(new PreValidateReWriter(catalogReader, typeFactory))
+    sqlNode match {
+      case node: ExtendedSqlNode =>
+        node.validate()
+        if (sqlNode.getKind.belongsTo(SqlKind.DDL)) {
 
 Review comment:
   move this out of pattern match

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to