mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-28 05:34:02 +00:00
An incremental read proves a region's watermark, but the proof travels without the two facts that make it usable: which partition expression the region was opened under, and which regions' files the region could see at that moment. Both are known when the scan opens the version that yields the watermark, and both are lost afterwards: the entry carried `partition_expr: None` unconditionally, the client projected the entries onto `region -> sequence`, and the flow sample kept only that projection. Carry the expression identity and the visible foreign creators alongside the watermark from the same version snapshot. `None` means unknown, never "none": a caller that has to decide whether a round may advance cannot read an absent answer as a negative one. Keep the region-wide entry and its slices apart, and keep "read without a proved watermark" apart from "never read".