airborne12 commented on code in PR #30145: URL: https://github.com/apache/doris/pull/30145#discussion_r1502023410
########## be/src/olap/task/index_builder.cpp: ########## @@ -137,6 +132,23 @@ Status IndexBuilder::update_inverted_index_info() { auto output_rs_writer = DORIS_TRY(_tablet->create_rowset_writer(context, false)); _pending_rs_guards.push_back(_engine.add_pending_rowset(context)); + for (int seg_id = 0; seg_id < num_segments; seg_id++) { + auto segment_full_path = io::Path( + static_cast<BetaRowset*>(input_rowset.get())->segment_file_path(seg_id)); + std::string segment_filename = segment_full_path.filename().native(); + auto segment_dir = segment_full_path.parent_path(); + auto idx_file_reader = std::make_unique<InvertedIndexFileReader>( + context.fs, segment_dir, segment_filename, + output_rs_tablet_schema->get_inverted_index_storage_format()); + auto st = idx_file_reader->init(); + if (!st.ok() && !st.is<ErrorCode::INVERTED_INDEX_FILE_NOT_FOUND>()) { + return st; + } + _inverted_index_file_readers.emplace( Review Comment: read non-index-compacted columns index file -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org