Skip to main content

prune_hypertable_chunks

Function prune_hypertable_chunks 

Source
pub fn prune_hypertable_chunks(
    spec: &HypertableSpec,
    chunks: &[ChunkMeta],
    filter: Option<&Filter>,
) -> Vec<ChunkMeta>
Expand description

Return the subset of chunks that may contain a row matching filter’s temporal predicate.

  • filter == None (no WHERE) → every chunk is kept.
  • a WHERE that doesn’t constrain the time column → every chunk is kept (conservative).
  • a temporal predicate → only chunks whose [start_ns, end_ns) interval overlaps the predicate window survive.

Ordering mirrors the input chunks slice.