This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 72c125d6155 [fix](mark_join) core caused by null pointer (#26324)
72c125d6155 is described below

commit 72c125d6155e6a64e6ef2430659a453c42256bc1
Author: Jerry Hu <[email protected]>
AuthorDate: Thu Nov 2 21:46:39 2023 +0800

    [fix](mark_join) core caused by null pointer (#26324)
---
 be/src/vec/exec/join/process_hash_table_probe_impl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/vec/exec/join/process_hash_table_probe_impl.h 
b/be/src/vec/exec/join/process_hash_table_probe_impl.h
index 5e54d826629..dee0f806a82 100644
--- a/be/src/vec/exec/join/process_hash_table_probe_impl.h
+++ b/be/src/vec/exec/join/process_hash_table_probe_impl.h
@@ -292,7 +292,7 @@ Status 
ProcessHashTableProbe<JoinOpType>::do_process(HashTableType& hash_table_c
                     if (is_mark_join) {
                         ++current_offset;
                         bool null_result =
-                                (*null_map)[probe_index] ||
+                                (need_null_map_for_probe && 
(*null_map)[probe_index]) ||
                                 (!find_result.is_found() && 
_join_node->_has_null_in_build_side);
                         if (null_result) {
                             mark_column->insert_null();
@@ -309,7 +309,7 @@ Status 
ProcessHashTableProbe<JoinOpType>::do_process(HashTableType& hash_table_c
                     if (is_mark_join) {
                         ++current_offset;
                         bool null_result =
-                                (*null_map)[probe_index] ||
+                                (need_null_map_for_probe && 
(*null_map)[probe_index]) ||
                                 (!find_result.is_found() && 
_join_node->_has_null_in_build_side);
                         if (null_result) {
                             mark_column->insert_null();


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

Reply via email to