morrySnow commented on code in PR #35006:
URL: https://github.com/apache/doris/pull/35006#discussion_r1604427929


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/DeleteFromUsingCommand.java:
##########
@@ -75,7 +75,7 @@ public void run(ConnectContext ctx, StmtExecutor executor) 
throws Exception {
         if (ctx.getSessionVariable().isInDebugMode()) {
             throw new AnalysisException("Delete is forbidden since current 
session is in debug mode."
                     + " Please check the following session variables: "
-                    + String.join(", ", SessionVariable.DEBUG_VARIABLES));
+                    + 
ConnectContext.get().getSessionVariable().printDebugModeVariables());

Review Comment:
   ```suggestion
                       + ctx.getSessionVariable().printDebugModeVariables());
   ```



##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/UpdateCommand.java:
##########
@@ -223,7 +223,7 @@ private void checkTable(ConnectContext ctx) {
         if (ctx.getSessionVariable().isInDebugMode()) {
             throw new AnalysisException("Update is forbidden since current 
session is in debug mode."
                     + " Please check the following session variables: "
-                    + String.join(", ", SessionVariable.DEBUG_VARIABLES));
+                    + 
ConnectContext.get().getSessionVariable().printDebugModeVariables());

Review Comment:
   ```suggestion
                       + ctx.getSessionVariable().printDebugModeVariables());
   ```



-- 
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: commits-unsubscr...@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to