HappenLee commented on a change in pull request #7613: URL: https://github.com/apache/incubator-doris/pull/7613#discussion_r781723315
########## File path: be/src/olap/rowset/segment_v2/binary_dict_page.cpp ########## @@ -257,23 +257,33 @@ Status BinaryDictPageDecoder::next_batch(size_t* n, vectorized::MutableColumnPtr const int32_t* data_array = reinterpret_cast<const int32_t*>(_bit_shuffle_ptr->_chunk.data); size_t start_index = _bit_shuffle_ptr->_cur_index; - // todo(wb) support nullable - if (dst->is_predicate_column()) { + auto* dst_col_ptr = dst.get(); + if (dst->is_nullable()) { + auto nullable_column = assert_cast<vectorized::ColumnNullable*>(dst.get()); + dst_col_ptr = nullable_column->get_nested_column_ptr().get(); + + // fill null bitmap here, not null; + for (int i = 0; i < max_fetch; i++) { Review comment: consider use memset to SIMD the code, Mark TODO: ########## File path: be/src/olap/rowset/segment_v2/binary_dict_page.cpp ########## @@ -257,23 +257,33 @@ Status BinaryDictPageDecoder::next_batch(size_t* n, vectorized::MutableColumnPtr const int32_t* data_array = reinterpret_cast<const int32_t*>(_bit_shuffle_ptr->_chunk.data); size_t start_index = _bit_shuffle_ptr->_cur_index; - // todo(wb) support nullable - if (dst->is_predicate_column()) { + auto* dst_col_ptr = dst.get(); + if (dst->is_nullable()) { + auto nullable_column = assert_cast<vectorized::ColumnNullable*>(dst.get()); + dst_col_ptr = nullable_column->get_nested_column_ptr().get(); + + // fill null bitmap here, not null; + for (int i = 0; i < max_fetch; i++) { + nullable_column->get_null_map_data().push_back(0); + } + } + + if (dst_col_ptr->is_predicate_column()) { Review comment: dst_col_ptr->is_predicate_column() is `true` means the column is `PredicateColumnType` why `dst_col_prt` convert to vectorized::ColumnStringValue* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org