yiguolei commented on code in PR #21239: URL: https://github.com/apache/doris/pull/21239#discussion_r1244817687
########## be/src/olap/rowset/segment_v2/segment_iterator.cpp: ########## @@ -490,6 +490,21 @@ Status SegmentIterator::_get_row_ranges_from_conditions(RowRanges* condition_row RowRanges::ranges_intersection(*condition_row_ranges, zone_map_row_ranges, condition_row_ranges); _opts.stats->rows_stats_filtered += (pre_size - condition_row_ranges->count()); + + RowRanges dict_row_ranges = RowRanges::create_single(num_rows()); Review Comment: 这里加一个判断,只有 read query 的时候才走, compaction 别走了,万一咱们的逻辑有bug,把数据搞错了。 -- 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