fix last row cache

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2026-03-20 01:53:03 +08:00
parent 733f406e42
commit b3ba1c5914
3 changed files with 87 additions and 0 deletions

View File

@@ -515,6 +515,13 @@ impl FlatRowGroupLastRowReader {
if self.yielded_batches.is_empty() {
return;
}
// Filtered flat last-row scans only contain the subset of series that matched the
// encoded primary-key prefilter, so they cannot be published under the shared
// selector cache key.
if self.primary_key_filter.is_some() {
return;
}
let batches = std::mem::take(&mut self.yielded_batches);
let value = Arc::new(SelectorResultValue::new_flat(
batches,