github-actions[bot] commented on code in PR #14911:
URL: https://github.com/apache/doris/pull/14911#discussion_r1042892680


##########
be/src/vec/exec/join/vnested_loop_join_node.cpp:
##########
@@ -682,4 +563,53 @@ void VNestedLoopJoinNode::_release_mem() {
     _tuple_is_null_right_flag_column = nullptr;
 }
 
+Status VNestedLoopJoinNode::pull(RuntimeState* state, vectorized::Block* 
block, bool* eos) {
+    if (_is_output_left_side_only) {
+        RETURN_IF_ERROR(_build_output_block(&_left_block, block));
+        *eos = _left_side_eos;
+        _need_more_input_data = !_left_side_eos;
+    } else {
+        *eos = _match_all_build
+                       ? _output_null_idx_build_side == _build_blocks.size() 
&& _matched_rows_done
+                       : _matched_rows_done;
+
+        {
+            Block tmp_block = _join_block;
+            _add_tuple_is_null_column(&tmp_block);
+            {
+                SCOPED_TIMER(_join_filter_timer);
+                RETURN_IF_ERROR(VExprContext::filter_block(_vconjunct_ctx_ptr, 
&tmp_block,
+                                                           
tmp_block.columns()));
+            }
+            RETURN_IF_ERROR(_build_output_block(&tmp_block, block));
+            _reset_tuple_is_null_column();
+        }
+        _join_block.clear_column_data();
+
+        if (!(*eos) and !_need_more_input_data) {
+            auto func = [&](auto&& join_op_variants, auto set_build_side_flag,
+                            auto set_probe_side_flag) {
+                return 
_generate_join_block_data<std::decay_t<decltype(join_op_variants)>,
+                                                 set_build_side_flag, 
set_probe_side_flag>(
+                        state, join_op_variants);
+            };
+            RETURN_IF_ERROR(std::visit(func, _join_op_variants,
+                                       make_bool_variant(_match_all_build || 
_is_right_semi_anti),
+                                       make_bool_variant(_match_all_probe || 
_is_left_semi_anti)));
+        }
+    }
+
+    reached_limit(block, eos);
+    return Status::OK();
+}
+
+bool VNestedLoopJoinNode::need_more_input_data() const {
+    return _need_more_input_data;
+}
+
+void VNestedLoopJoinNode::release_resource(doris::RuntimeState* state) {
+    VExpr::close(_filter_src_expr_ctxs, state);
+    if (_vjoin_conjunct_ptr) (*_vjoin_conjunct_ptr)->close(state);

Review Comment:
   warning: statement should be inside braces 
[readability-braces-around-statements]
   
   ```suggestion
       if (_vjoin_conjunct_ptr) { (*_vjoin_conjunct_ptr)->close(state);
   }
   ```
   



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