JingsongLi commented on code in PR #19940:
URL: https://github.com/apache/flink/pull/19940#discussion_r895303364
##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/calcite/FlinkPlannerImpl.scala:
##########
@@ -149,7 +149,20 @@ class FlinkPlannerImpl(
}
sqlNode match {
case richExplain: SqlRichExplain =>
- richExplain.setOperand(0, validate(richExplain.getStatement))
+ val validatedStatement = richExplain.getStatement match {
+ // only validate source here
+ case insert: RichSqlInsert =>
+ if (insert.isUpsert) {
Review Comment:
Extract a method for reusing?
--
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]