klion26 commented on code in PR #21676:
URL: https://github.com/apache/flink/pull/21676#discussion_r1240741398


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java:
##########
@@ -847,6 +854,26 @@ public TableResultInternal 
executeInternal(List<ModifyOperation> operations) {
                 executeInternal(ctasOperation.getCreateTableOperation());
                 
mapOperations.add(ctasOperation.toSinkModifyOperation(catalogManager));
             } else {
+                boolean isRowLevelModification = 
isRowLevelModification(modify);
+                if (isRowLevelModification) {
+                    String modifyType =
+                            ((SinkModifyOperation) modify).isDelete() ? 
"DELETE" : "UPDATE";
+                    if (operations.size() > 1) {
+                        throw new TableException(
+                                String.format(
+                                        "Unsupported SQL query! Only accept a 
single SQL statement of type %s.",
+                                        modifyType));
+                    }
+                    if (isStreamingMode) {
+                        throw new TableException(

Review Comment:
   Hi, @luoyuxia is there any document about this not supported statement(how 
to migrate them from previous versions)? and will we support this in the near 
future? thanks.



-- 
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]

Reply via email to