Aggregation Functions
Aggregation functions are used within summarize operators to compute values across groups of rows. Most common aggregations — count(), sum(), avg(), min(), max() — work across all dialects. More advanced aggregations like arg_max(), percentile(), dcountif(), and make_bag() are ClickHouse-only or have limited availability.
Legend: ✅ Supported · ⚠️ Approximated · ❌ Not Supported · 🔄 Rewritten
| Function | SQLite | MySQL | ClickHouse | PostgreSQL | Notes |
|---|---|---|---|---|---|
count() | ✅ | ✅ | ✅ | ✅ | |
countif() | ✅ | ✅ | ✅ | ✅ | Non-ClickHouse: SUM(CASE WHEN ...) |
sum() | ✅ | ✅ |