csun5285 commented on code in PR #66472:
URL: https://github.com/apache/doris/pull/66472#discussion_r3765053313


##########
be/src/storage/segment/segment_iterator.cpp:
##########
@@ -446,47 +433,39 @@ Status SegmentIterator::_init_impl(const 
StorageReadOptions& opts) {
                                   
_opts.runtime_state->enable_prune_nested_column();
 
     if (opts.output_columns != nullptr) {
-        _output_columns = *(opts.output_columns);
+        _output_column_uids = *(opts.output_columns);
     }
 
-    _storage_name_and_type.resize(_schema->columns().size());
+    _storage_name_and_type.resize(_schema->num_read_columns());
     auto storage_format = 
_opts.tablet_schema->get_inverted_index_storage_format();
-    for (int i = 0; i < _schema->columns().size(); ++i) {
+    for (size_t i = 0; i < _schema->num_read_columns(); ++i) {
         const TabletColumn* col = _schema->column(i);

Review Comment:
   new_column_iteator 会返回一个default_column_iterator



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

Reply via email to