eldenmoon commented on code in PR #26749:
URL: https://github.com/apache/doris/pull/26749#discussion_r1393620784


##########
be/src/olap/rowset/segment_v2/segment_iterator.cpp:
##########
@@ -1903,13 +2015,17 @@ Status 
SegmentIterator::_next_batch_internal(vectorized::Block* block) {
             _block_rowids.resize(_opts.block_row_max);
         }
         _current_return_columns.resize(_schema->columns().size());
+        _converted_column_ids.resize(_schema->columns().size(), 0);
         for (size_t i = 0; i < _schema->num_column_ids(); i++) {
             auto cid = _schema->column_id(i);
             auto column_desc = _schema->column(cid);
             if (_is_pred_column[cid]) {
-                RETURN_IF_CATCH_EXCEPTION(_current_return_columns[cid] =
-                                                  
Schema::get_predicate_column_ptr(
-                                                          *column_desc, 
_opts.io_ctx.reader_type));
+                auto storage_column_type = _storage_name_and_type[cid].second;
+                RETURN_IF_CATCH_EXCEPTION(
+                        _current_return_columns[cid] = 
Schema::get_predicate_column_ptr(
+                                _is_char_type[cid] ? 
FieldType::OLAP_FIELD_TYPE_CHAR

Review Comment:
   comment add to code



-- 
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

Reply via email to