airborne12 commented on code in PR #71230:
URL: https://github.com/apache/doris/pull/71230#discussion_r4768693520


##########
be/src/storage/segment/column_reader.cpp:
##########
@@ -697,6 +700,33 @@ Status ColumnReader::new_index_iterator(const 
std::shared_ptr<IndexFileReader>&
     return Status::OK();
 }
 
+Status ConstantColumnReader::new_index_iterator(
+        const std::shared_ptr<IndexFileReader>& index_file_reader, const 
TabletIndex* index_meta,
+        const std::string& rowset_id, uint32_t segment_id, size_t 
rows_of_segment,
+        std::unique_ptr<IndexIterator>* iterator) {
+    DORIS_CHECK(index_meta != nullptr);

Review Comment:
   Fixed in 5ae0ec373e4 by restoring the null check instead of changing the 
test. `ConstantColumnReader::new_index_iterator` returns no iterator for a null 
index meta again, so `ConstantReaderHasNoPhysicalIndexIterator` keeps the 
contract it pins. The same commit also restores the skip for a missing column 
with unique ID -1, which 
`IndexBuilderTest.BuildSniiIndexWithNoSurvivingIndexWritesNoFile` expects. 
`IndexBuilderTest`, `ConstantColumnIteratorTest`, `IndexStorage*` and 
`SegmentIteratorExprZoneMap*` pass locally with an ASAN UT build.



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