This is an automated email from the ASF dual-hosted git repository.

924060929 pushed a commit to branch fe_local_shuffle
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/fe_local_shuffle by this push:
     new 6c777c7aaab [fix](profile) Enable profile collection for 
MergeIntoCommand
6c777c7aaab is described below

commit 6c777c7aaab30baf9c911f0e39920c4fe1d60405
Author: 924060929 <[email protected]>
AuthorDate: Tue Apr 28 16:27:39 2026 +0800

    [fix](profile) Enable profile collection for MergeIntoCommand
    
    MergeIntoCommand extends Command but was not in the isProfileSafeStmt()
    whitelist, so SHOW LOAD PROFILE never collected merge_into profiles.
    This made it impossible to diagnose merge_into timeout issues.
---
 fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index f28894bd61c..5bee5a4a4d9 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -1101,8 +1101,10 @@ public class StmtExecutor {
         // 1. CreateTableCommand(mainly for create as select).
         // 2. LoadCommand.
         // 3. InsertOverwriteTableCommand.
+        // 4. MergeIntoCommand (merge into ... using ...).
         if ((plan instanceof Command) && !(plan instanceof LoadCommand)
-                && !(plan instanceof CreateTableCommand) && !(plan instanceof 
InsertOverwriteTableCommand)) {
+                && !(plan instanceof CreateTableCommand) && !(plan instanceof 
InsertOverwriteTableCommand)
+                && !(plan instanceof 
org.apache.doris.nereids.trees.plans.commands.merge.MergeIntoCommand)) {
             // Commands like SHOW QUERY PROFILE will not have profile.
             return false;
         } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to