hello-stephen commented on code in PR #71230:
URL: https://github.com/apache/doris/pull/71230#discussion_r4763421119
##########
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:
[P2] Update the existing constant-reader test for this precondition
`ConstantColumnIteratorTest.ConstantReaderHasNoPhysicalIndexIterator`
(`be/test/storage/segment/constant_column_iterator_test.cpp:709-717`) still
calls `new_index_iterator(nullptr, nullptr, ...)` and expects success. This new
assertion therefore makes the existing BE unit test fail unconditionally: fatal
in debug builds, or an uncaught exception reported as a test failure in release
builds. Update the test to construct valid index metadata and a file reader and
exercise the missing-index fallback under the new contract.
--
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]