hello-stephen commented on code in PR #71231:
URL: https://github.com/apache/doris/pull/71231#discussion_r4795982293


##########
be/src/storage/rowset/beta_rowset.cpp:
##########
@@ -296,7 +296,8 @@ Status BetaRowset::load_segment(RowsetSegmentRef seg, 
OlapReaderStatistics* stat
     auto s = segment_v2::Segment::open(
             fs, seg_path, _rowset_meta->tablet_id(), 
cast_set<uint32_t>(seg.id), rowset_id(),
             _schema, reader_options, segment,
-            _rowset_meta->inverted_index_file_info_by_pos(seg.pos), stats, 
io_ctx);
+            _rowset_meta->inverted_index_file_info_by_pos(seg.pos), stats, 
io_ctx,
+            _rowset_meta->tablet_schema() && _rowset_meta->tablet_schema() == 
_schema);

Review Comment:
   [P2] Preserve the missing-path proof after vertical compaction
   
   With `VARIANT<'label_*':TEXT>`, a one-subcolumn budget and a one-entry 
sparse-stat limit, compact rowsets that have `label_other` and enough unrelated 
slash-free keys to fill the sparse statistics. SEARCH for the absent 
`label_Key` can now fail with “SEARCH index unavailable” just after compaction. 
The writer constructs the live Rowset with the extended schema, then 
`Compaction::finish_merge_input_rowsets_execution` stores a stripped copy only 
in `RowsetMeta`. The pointer comparison disables the proof. Reopening 
reconstructs both references from that stripped schema and the same segment can 
return an empty result. Track writer-schema provenance independently of this 
pointer comparison and cover the same query before and after vertical 
compaction.



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