BiteTheDDDDt commented on code in PR #49638:
URL: https://github.com/apache/doris/pull/49638#discussion_r2022199135


##########
be/src/pipeline/exec/hashjoin_build_sink.cpp:
##########
@@ -222,24 +231,25 @@ Status HashJoinBuildSinkLocalState::close(RuntimeState* 
state, Status exec_statu
         }
     }};
 
-    if (!_runtime_filter_producer_helper || state->is_cancelled() || !_eos) {
-        return Base::close(state, exec_status);
-    }
-
     try {
-        RETURN_IF_ERROR(_runtime_filter_producer_helper->process(
-                state, _shared_state->build_block.get(), 
p._use_shared_hash_table,
-                p._runtime_filters));
+        if (!_terminated && _runtime_filter_producer_helper && 
!state->is_cancelled()) {
+            if (_should_build_hash_table) {
+                RETURN_IF_ERROR(_runtime_filter_producer_helper->build(

Review Comment:
   这里的逻辑最好尽可能收敛到helper内部



-- 
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