Skip to main content

Module aggr

Module aggr 

Source
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Β§

AggrFilters πŸ”’
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 = literal equality.
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 None if 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 πŸ”’