eldenmoon commented on code in PR #26749:
URL: https://github.com/apache/doris/pull/26749#discussion_r1393620045
##########
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:
Char type is special , since char type's datatype is same with string, both
are `DataTypeString`, but `DataTypeString` only return
`FieldType::OLAP_FIELD_TYPE_STRING` in `get_storage_field_type`.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]