Expand description
Answers aggregates of a scan from manifest and SST statistics instead of scanning SST rows. The preparation result, an exact answer or a split into exact and residual sources, does not depend on the aggregate; scalar COUNT is the only aggregate served so far.
ModulesΒ§
- overlap
- Finds sources that may share a row in (time, primary key) space.
StructsΒ§
- Aggr
Filters π - Static scan predicates a metadata count can absorb.
- Classification π
- Files of one scan classified against its pinned read view.
FunctionsΒ§
- classify π
- A file is an exact candidate if all of the following hold:
- eq_
literal π - Returns the literal of a non-null, same-type
column = literalequality. - file_
evidence π - Proves the bounds and visible rows required for this exact candidate.
- footer_
proves_ πvisible_ rows - The footer and manifest must agree. Without the writerβs uniqueness claim, only a single physical row is independently known to be unique.
- leftmost_
primary_ πkey - The leftmost primary key column. Sparse keys are not supported yet.
- prepare π
- Returns the exact number of rows the scan yields, or
Noneif it cannot be proven. Non-append candidates use cached Parquet footers to prove file-local uniqueness and the absence of deletes. - split_
and π - time_
bounds_ πmatch - time_
filter π