yiguolei commented on code in PR #66472:
URL: https://github.com/apache/doris/pull/66472#discussion_r3764703648
##########
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:
在light weight schema change 加列的时候,这个col 实际在当前segment 中不存在,我们怎么处理呢?
--
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]