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

yiguolei pushed a commit to branch dev-1.1.2
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/dev-1.1.2 by this push:
     new 23a6fbdcf7 [bugfix](join) fix coredump when build block size is 0 
(#12238)
23a6fbdcf7 is described below

commit 23a6fbdcf76e8615ea55d30f4216b41ba0c033d6
Author: TengJianPing <[email protected]>
AuthorDate: Thu Sep 1 09:43:03 2022 +0800

    [bugfix](join) fix coredump when build block size is 0 (#12238)
---
 be/src/vec/exec/join/vhash_join_node.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/vec/exec/join/vhash_join_node.cpp 
b/be/src/vec/exec/join/vhash_join_node.cpp
index 0e716c08b8..a1308f57a9 100644
--- a/be/src/vec/exec/join/vhash_join_node.cpp
+++ b/be/src/vec/exec/join/vhash_join_node.cpp
@@ -200,9 +200,9 @@ struct ProcessHashTableProbe {
                     }
                 }
             } else {
-                bool need_nullable_convert[column_length];
+                bool need_nullable_convert[column_length] = {false};
                 for (int i = 0; i < column_length; ++i) {
-                    if (output_slot_flags[i]) {
+                    if (output_slot_flags[i] && !_build_blocks.empty()) {
                         need_nullable_convert[i] =
                                 probe_all &&
                                 
!_build_blocks[0].get_by_position(i).column->is_nullable();


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

Reply via email to