Skip to content

v0.1.4

Choose a tag to compare

@chaturv3di chaturv3di released this 24 Mar 05:35
· 65 commits to main since this release
23a08a7

What's new

Breaking change

  • MetricSpec: removed aggregation field. Aggregation type is now inferred from the SQL function embedded in numerator/denominator. Ratio is implied when denominator is 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 optional entities field — declares which entity columns the metric supports for by_entity disaggregation (e.g. entities: [user_id, device_id])
  • MetricCompute.compute(): new by_entity parameter — groups results by an entity column declared in each metric's entities list
  • Standard output schema gains entity_id column (position 4, between period_end_date and metric_name); None when by_entity is not set
  • PostgreSQL backend support via ibis-framework[postgres] (pip install "aitaem[postgres]")