[fix](Lateral-View)(Vectorized) core dump on lateral-view with nullable column (#9191)

This commit is contained in:
Pxl
2022-04-26 10:24:11 +08:00
committed by GitHub
parent da4e7ec6c2
commit 951c2a90eb

View File

@ -121,7 +121,7 @@ public:
raw_res_ptr->reserve(batch_size);
// adapt for outer join change column to nullable
if (raw_res_ptr->is_nullable()) {
if (raw_res_ptr->is_nullable() && !input_col_ptr->is_nullable()) {
auto col_ptr_nullable =
reinterpret_cast<vectorized::ColumnNullable*>(raw_res_ptr.get());
col_ptr_nullable->get_null_map_column().insert_many_defaults(select_size);