This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push: new 4a1921275fa [fix](bug) fix the be coredump caused by type conversion (#35243) 4a1921275fa is described below commit 4a1921275fac0757956792d1d67ee86ea7063034 Author: lw112 <131352377+felixw...@users.noreply.github.com> AuthorDate: Thu May 23 11:23:11 2024 +0800 [fix](bug) fix the be coredump caused by type conversion (#35243) --- be/src/exec/exec_node.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/be/src/exec/exec_node.cpp b/be/src/exec/exec_node.cpp index 6324f500643..262810c02fd 100644 --- a/be/src/exec/exec_node.cpp +++ b/be/src/exec/exec_node.cpp @@ -58,6 +58,7 @@ #include "runtime/runtime_state.h" #include "util/debug_util.h" #include "util/runtime_profile.h" +#include "vec/columns/column_nullable.h" #include "vec/core/block.h" #include "vec/exec/join/vhash_join_node.h" #include "vec/exec/join/vnested_loop_join_node.h" @@ -822,7 +823,13 @@ Status ExecNode::do_projections(vectorized::Block* origin_block, vectorized::Blo RETURN_IF_ERROR(_projections[i]->execute(origin_block, &result_column_id)); auto column_ptr = origin_block->get_by_position(result_column_id) .column->convert_to_full_column_if_const(); - mutable_columns[i]->insert_range_from(*column_ptr, 0, rows); + + if (column_ptr->is_nullable() ^ mutable_columns[i]->is_nullable()) { + auto nullable_column = reinterpret_cast<ColumnNullable*>(mutable_columns[i].get()); + nullable_column->insert_range_from_not_nullable(*column_ptr, 0, rows); + } else { + mutable_columns[i]->insert_range_from(*column_ptr, 0, rows); + } } if (!is_mem_reuse) output_block->swap(mutable_block.to_block()); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org