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


##########
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:
   @luoyuxia thanks for the reply, and sorry for the previous message. after 
another check, found that the problem is not caused here, will start discuss in 
the third project.



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