luoyuxia commented on code in PR #21676:
URL: https://github.com/apache/flink/pull/21676#discussion_r1240994175
##########
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:
Thanks reach me out. What do you mean by saying `how to migrate them from
previous versions`? Currently,it's by design that delete & update is not
supported in stream mode and the previous versioneven don't support delete &
update statement. So, what is for migration?
--
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]