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

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new e8cad6323f1 branch-4.1: [fix](load) respect profile level for writer 
details (#64978)
e8cad6323f1 is described below

commit e8cad6323f1fa8ce1b2d0882811e552081315427
Author: hui lai <[email protected]>
AuthorDate: Mon Jul 13 14:56:27 2026 +0800

    branch-4.1: [fix](load) respect profile level for writer details (#64978)
    
    pick https://github.com/apache/doris/pull/64620
---
 be/src/exec/sink/writer/vtablet_writer_v2.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/be/src/exec/sink/writer/vtablet_writer_v2.cpp 
b/be/src/exec/sink/writer/vtablet_writer_v2.cpp
index 610500aeffa..497b167d3cc 100644
--- a/be/src/exec/sink/writer/vtablet_writer_v2.cpp
+++ b/be/src/exec/sink/writer/vtablet_writer_v2.cpp
@@ -692,7 +692,8 @@ Status VTabletWriterV2::close(Status exec_status) {
             SCOPED_TIMER(_close_writer_timer);
             // close all delta writers if this is the last user
             RuntimeProfile* delta_writer_profile =
-                    _state->profile_level() >= 2 ? _operator_profile : nullptr;
+                    (_state->enable_profile() && _state->profile_level() >= 2) 
? _operator_profile
+                                                                               
: nullptr;
             auto st = _delta_writer_for_tablet->close(segments_for_tablet, 
delta_writer_profile);
             _delta_writer_for_tablet.reset();
             if (!st.ok()) {


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

Reply via email to