wuchong commented on a change in pull request #8966:
[FLINK-13074][table-planner-blink] Add PartitionableTableSink bridge logic to
flink&blink …
URL: https://github.com/apache/flink/pull/8966#discussion_r305328681
##########
File path:
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/api/internal/TableEnvImpl.scala
##########
@@ -440,10 +441,12 @@ abstract class TableEnvImpl(
// parse the sql query
val parsed = planner.parse(stmt)
parsed match {
- case insert: SqlInsert =>
- // validate the SQL query
- val query = insert.getSource
- val validatedQuery = planner.validate(query)
+ case insert: RichSqlInsert =>
+ // validate the insert
+ val validatedInsert =
planner.validate(insert).asInstanceOf[RichSqlInsert]
Review comment:
I don't think we need cast to `RichSqlInsert` here.
----------------------------------------------------------------
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