diff --git a/dbms/src/Columns/ColumnNullable.cpp b/dbms/src/Columns/ColumnNullable.cpp index e1dd370b8f3..986a6c7ace3 100644 --- a/dbms/src/Columns/ColumnNullable.cpp +++ b/dbms/src/Columns/ColumnNullable.cpp @@ -47,18 +47,7 @@ ColumnPtr ColumnNullable::convertToFullColumnIfConst() const { new_col_holder = std::make_shared(full_col); ColumnNullable & new_col = static_cast(*new_col_holder); - - if (!getNullMapContent().empty()) - new_col.null_map = null_map; - else - { - size_t n = nested_column->size(); - if (n > 0) - { - new_col.null_map = std::make_shared(); - new_col.getNullMapContent().getData().resize_fill(n, 0); - } - } + new_col.null_map = null_map; } return new_col_holder;