v0.1.4
What's new
Breaking change
MetricSpec: removedaggregationfield. Aggregation type is now inferred from the SQL function embedded innumerator/denominator. Ratio is implied whendenominatoris present.
Migration
Remove aggregation: from all metric YAML specs. Ensure numerator (and denominator when present) contain an explicit aggregate function call: SUM(col), AVG(col), COUNT(*), MIN(col), or MAX(col).
Added
MetricSpec: new optionalentitiesfield — declares which entity columns the metric supports forby_entitydisaggregation (e.g.entities: [user_id, device_id])MetricCompute.compute(): newby_entityparameter — groups results by an entity column declared in each metric'sentitieslist- Standard output schema gains
entity_idcolumn (position 4, betweenperiod_end_dateandmetric_name);Nonewhenby_entityis not set - PostgreSQL backend support via
ibis-framework[postgres](pip install "aitaem[postgres]")