Skip to content

Implement AVG for GROUP BY

AVG(expr)

  • map agg: (COUNT(expr), SUM(expr))
  • reduce agg: SUM / COUNT