yuzelin commented on code in PR #21187:
URL: https://github.com/apache/flink/pull/21187#discussion_r1046597242


##########
flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/context/SessionContext.java:
##########
@@ -128,6 +137,26 @@ public SessionState getSessionState() {
         return sessionState;
     }
 
+    public boolean isStatementSetState() {
+        return isStatementSetState;
+    }
+
+    public void setStatementSetState(boolean isStatementSetState) {
+        this.isStatementSetState = isStatementSetState;
+    }
+
+    public List<ModifyOperation> getStatementSetOperations() {
+        return Collections.unmodifiableList(new 
ArrayList<>(statementSetOperations));

Review Comment:
   This is because that disableStatementSetMode() will clear the 
statementSetOperations, so here should return a new list.



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to