HappenLee commented on a change in pull request #4165:
URL: https://github.com/apache/incubator-doris/pull/4165#discussion_r459948700



##########
File path: be/src/exec/blocking_join_node.cpp
##########
@@ -74,14 +76,23 @@ Status BlockingJoinNode::prepare(RuntimeState* state) {
     _probe_tuple_row_size = num_left_tuples * sizeof(Tuple*);
     _build_tuple_row_size = num_build_tuples * sizeof(Tuple*);
 
+    if (_join_op == TJoinOp::LEFT_ANTI_JOIN || _join_op == 
TJoinOp::LEFT_SEMI_JOIN ||
+        _join_op == TJoinOp::RIGHT_ANTI_JOIN || _join_op == 
TJoinOp::RIGHT_SEMI_JOIN ||
+        _join_op == TJoinOp::NULL_AWARE_LEFT_ANTI_JOIN) {
+        _semi_join_staging_row = reinterpret_cast<TupleRow*>(
+                new char[_probe_tuple_row_size + _build_tuple_row_size]);
+    }
     _left_batch.reset(new RowBatch(child(0)->row_desc(), state->batch_size(), 
mem_tracker()));
+    _build_batch.reset(new RowBatch(child(1)->row_desc(), state->batch_size(), 
mem_tracker()));
     return Status::OK();
 }
 
 Status BlockingJoinNode::close(RuntimeState* state) {
     // TODO(zhaochun): avoid double close
     // if (is_closed()) return Status::OK();
     _left_batch.reset();
+    _build_batch.reset();
+    if (_semi_join_staging_row != nullptr) delete[] _semi_join_staging_row;

Review comment:
       ok,I will check this part。




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

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to