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


##########
be/src/storage/segment/segment.cpp:
##########
@@ -493,9 +484,13 @@ Status Segment::new_iterator(SchemaSPtr schema, const 
StorageReadOptions& read_o
         auto pruned = false;
         for (auto& it : _column_reader_cache->get_available_readers(false)) {
             const auto uid = it.first;
-            const auto column_id = 
read_options.tablet_schema->field_index(uid);
+            // Column readers are keyed by UID; predicates use read schema 
ordinals.
+            const auto ordinal = schema->ordinal_by_uid(uid);
+            if (ordinal < 0) {

Review Comment:
   什么时候ordinal < 0



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