Rindle docs and package mapSkip to main content

rewrite_aggregates_with_local

Function rewrite_aggregates_with_local 

Source
pub fn rewrite_aggregates_with_local(
    ast: &Ast,
    is_local: &dyn Fn(&str) -> bool,
) -> Ast
Expand description

rewrite_aggregates, with the L1 local-table carve-out (201-LOCAL-ONLY-TABLES-DESIGN.md §5.2): a count over a table is_local accepts is a native IVM reduce with no server-authoritative __agg_* base, so it is left alone — rewriting it would point the relationship at a synthetic table nothing ever feeds.