[Bug](join) fix bug null aware left anti join not correct result (#15841)
This commit is contained in:
@ -861,10 +861,9 @@ Status HashJoinNode::sink(doris::RuntimeState* state, vectorized::Block* in_bloc
|
||||
_process_hashtable_ctx_variants_init(state);
|
||||
}
|
||||
|
||||
// Since the comparison of null values is meaningless, left anti join should not output null
|
||||
// Since the comparison of null values is meaningless, null aware left anti join should not output null
|
||||
// when the build side is not empty.
|
||||
if (eos && !_build_blocks->empty() &&
|
||||
(_join_op == TJoinOp::LEFT_ANTI_JOIN || _join_op == TJoinOp::NULL_AWARE_LEFT_ANTI_JOIN)) {
|
||||
if (eos && !_build_blocks->empty() && _join_op == TJoinOp::NULL_AWARE_LEFT_ANTI_JOIN) {
|
||||
_probe_ignore_null = true;
|
||||
}
|
||||
return Status::OK();
|
||||
|
||||
Reference in New Issue
Block a user