Expand description
Canonical aggregate key generation.
A single source of truth for naming aggregate output fields. Used by the SQL planner (HAVING filter field names) and the Data Plane aggregate handler (result row keys).
Examples:
canonical_agg_key("count", "*") → "count(*)"
canonical_agg_key("sum", "price") → "sum(price)"
canonical_agg_key("avg", "score") → "avg(score)"
Functions§
- canonical_
agg_ key - Build the canonical key for an aggregate result field.