Files
greptimedb/tests/cases
aumnerticandClaude Opus 5.5 f7ea6ba2e1 refactor: bound residual memtables by their containers in metadata COUNT splits
Following review, the split no longer pins memtable reads to a sequence
fence. Bulk memtables deduplicate parts before the sequence is published,
so a read bounded below the surviving version could lose that row.

Instead, a file can only be exact if it is time-disjoint from the
container of every captured memtable range, the time range of every row
the range can ever yield:

- Time partitions now keep their range when frozen, and scans list
  memtables with it (`MemtableVersion::list_memtables_with_time_ranges`).
  A time-series range reads its live series set, so its container is its
  partition.
- Bulk ranges read immutable parts captured when they are built, so their
  container is the captured part's time range.
- The container is carried as `MemRangeBuilder::container_time_range`,
  apart from the memtable stats. A range without one makes every file
  residual.

The aggregate replacement moves to its own PR. `take_statistics_split`
now returns the rows counted from metadata and the residual scanner, and
a dynamic predicate drops a prepared split.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: aumnertic <aumnertic@gmail.com>
2026-11-15 03:55:56 -05:00
..