Skip to content
Theory · ClickHouse: Aggregates, Materialized Views, MergeTree Engines · lesson 1 of 12

Aggregate functions and combinators

The event tape passes once, each event drops into one of five counters from open to pay, and the uniqExact notebook remembers who was counted

In the previous chapter we laid out the coffee shop's sales on the archive's tapes: each column on its own tape, and a report unwinds only the ones it needs. Now let's see what the analyst does with an unwound tape. Most of the time, they count.

In this lesson

  • ClickHouse's own functions
  • The -If combinator
  • Exact and approximate functions
  • Common mistake
  • Key points