[Bug](join) fix bug null aware left anti join not correct result (#15841)

This commit is contained in:
HappenLee
2023-01-13 10:18:05 +08:00
committed by GitHub
parent 688a0bb96a
commit 9468711f9f
5 changed files with 11 additions and 8 deletions

View File

@ -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();