ClickHouse vs Druid vs Pinot: real-time OLAP compared
Ingestion model, SQL and join flexibility, moving parts to operate, and the team size each real-time OLAP database quietly assumes.
ClickHouse vs Druid vs Pinot is mostly a choice about how much SQL you need and how many services you are willing to run. All three are open-source (Apache 2.0) columnar databases built for fast aggregations over large event tables. Apache Pinot is designed for user-facing analytics at very high query concurrency on fresh streaming data, and it needs its multi-stage engine for joins. Apache Druid is built around time-partitioned segments, ingestion-time rollup and continuously running stream supervisors, and it advises joining data before ingestion where you can. ClickHouse is the most general-purpose SQL engine of the three: broad join support, materialized views and row updates, with the fewest moving parts to start. The trade-off is that ClickHouse leaves more of the real-time plumbing to you, while Druid and Pinot ship it built in. The details below are checked against the docs for ClickHouse 26.10, Druid 38.0.0 and Pinot 1.6.0, the latest releases as of November 2026.
ClickHouse vs Druid vs Pinot at a glance
| ClickHouse | Apache Druid | Apache Pinot | |
|---|---|---|---|
| Licence | Apache 2.0 | Apache 2.0 | Apache 2.0 |
| Storage unit | MergeTree parts, sorted by an ORDER BY key | Segments, partitioned by time chunk | Segments, assigned to servers by Apache Helix |
| Streaming ingestion | Kafka table engine plus a materialized view; ClickPipes on ClickHouse Cloud | Kafka and Kinesis supervisors, exactly-once | Real-time tables consuming Kafka, Kinesis or Pulsar |
| Batch ingestion | INSERT, table functions (S3, Postgres, MySQL and more) | Native batch or SQL INSERT / REPLACE tasks | Offline segments, usually built by Spark, Hadoop or Flink jobs and uploaded |
| Pre-aggregation | Materialized views into AggregatingMergeTree, projections | Rollup at ingestion | Ingestion aggregation on real-time tables, star-tree index, materialized views (1.6.0) |
| Row updates | UPDATE, ReplacingMergeTree | No single-record updates; overwrite by time range | Upserts by primary key (full or partial on real-time tables) |
| Joins | All standard types, several algorithms, some spill to disk | Broadcast hash join; sort-merge in SQL tasks | Multi-stage engine only, in memory |
| Minimum cluster | One process | Several service roles plus deep storage, a metadata database and ZooKeeper | Controller, broker and server plus ZooKeeper and a deep store |
| Commercial managed option | ClickHouse Cloud | Imply Polaris | StarTree Cloud |
How each one gets data in
Ingestion is where the three differ most. Druid and Pinot treat streaming as a first-class, built-in path. ClickHouse treats every write as an insert of a block of rows, and streaming is something you assemble.
Druid: supervisors, segments and rollup
Druid stores everything in segments partitioned by time, and every datasource has a primary timestamp stored in a __time column. For streams, you submit a supervisor spec, and a continuously running supervisor manages the indexing tasks that read from Kafka or Kinesis. The streaming ingestion docs describe both as exactly-once.
Rollup is the defining design choice. When it is enabled (the default in the ingestion spec’s granularitySpec), Druid combines rows with identical dimension values and truncated timestamps into one stored row with aggregated metrics. That can shrink storage dramatically, but the raw rows are gone: you cannot later ask a question that needs a dimension you did not keep.
Changes are coarse-grained. The data updates page is explicit: “Druid does not support single-record updates by primary key.” You overwrite a whole time range with a batch job or a SQL REPLACE ... OVERWRITE WHERE statement, and queries flip to the new data one time chunk at a time.
Pinot: real-time, offline and hybrid tables
Pinot splits tables by how data arrives. A real-time table consumes a stream (Kafka, Kinesis or Pulsar). An offline table receives segments in batches, usually built by a Spark or Hadoop job and uploaded, though Pinot can also build them itself from files with minion tasks. A hybrid table is both under one name: brokers serve recent time ranges from the real-time side and older ranges from the offline side. A common pattern is to push cleaned, deduplicated data to the offline table daily while the stream keeps the last few days fresh.
Pinot’s standout feature is upserts. Real-time tables support full and partial upserts by primary key, offline tables support full upserts. Upserts come with real constraints, documented on the upsert page: the input stream must be partitioned by the primary key, all segments of a partition must be served from the same server (the strictReplicaGroup routing strategy), and the map of valid records per key lives in heap memory, so high-cardinality keys need a metadata TTL. Old record versions stay on disk until compaction removes them, either a minion task or, since Pinot 1.5.0, optional compaction when a segment is committed.
ClickHouse: inserts, then everything else is SQL
ClickHouse has no built-in stream supervisor. The open-source route is the Kafka table engine: a consumer table that a materialized view reads from and writes into a MergeTree table, committing offsets after each pushed block. On ClickHouse Cloud, ClickPipes is a managed alternative for Kafka, Kinesis, Pub/Sub, object storage and database sources. Batch loads are plain INSERT ... SELECT statements, often from table functions such as s3() or postgresql().
What you get in exchange is that pre-aggregation is an ordinary, reversible choice. Instead of rolling up the raw table, you keep the raw events and maintain a rollup next to them with a materialized view:
CREATE TABLE events
(
event_time DateTime,
customer_id UInt32,
country LowCardinality(String),
event LowCardinality(String),
amount Decimal(12, 2)
)
ENGINE = MergeTree
PARTITION BY toYYYYMM(event_time)
ORDER BY (customer_id, event_time);
-- The Druid-style rollup, kept beside the raw rows instead of replacing them
CREATE TABLE events_per_minute
(
minute DateTime,
country LowCardinality(String),
event LowCardinality(String),
events AggregateFunction(count),
revenue AggregateFunction(sum, Decimal(12, 2)),
buyers AggregateFunction(uniq, UInt32)
)
ENGINE = AggregatingMergeTree
ORDER BY (country, event, minute);
CREATE MATERIALIZED VIEW events_per_minute_mv TO events_per_minute AS
SELECT
toStartOfMinute(event_time) AS minute,
country,
event,
countState() AS events,
sumState(amount) AS revenue,
uniqState(customer_id) AS buyers
FROM events
GROUP BY minute, country, event;
-- Dashboards read the small table
SELECT country,
countMerge(events) AS purchases,
sumMerge(revenue) AS revenue,
uniqMerge(buyers) AS buyers
FROM events_per_minute
WHERE minute >= '2026-10-24 00:00:00' AND event = 'purchase'
GROUP BY country
ORDER BY revenue DESC;
We ran this on ClickHouse 26.10 with 10 million synthetic events; the rollup table held about 1.57 million rows. Real ratios depend entirely on your dimension cardinality. If you later need a new dimension, you add a second view and backfill it from the raw table. The trade-offs between views and projections are covered in materialized views vs projections.
Updates are also SQL. On a MergeTree table with the block number and block offset columns enabled, UPDATE customers SET plan = 'enterprise' WHERE customer_id = 42 works directly, and ReplacingMergeTree remains the standard pattern for keeping the latest version of a row from an append-only stream.
SQL and join flexibility
All three accept SQL, but they mean different things by it.
ClickHouse supports INNER, LEFT, RIGHT, FULL and CROSS joins, plus SEMI, ANTI, ANY and ASOF variants, with a choice of algorithms (hash, parallel_hash, grace_hash, partial_merge, full_sorting_merge and more). Per the JOIN docs, hash-based algorithms can spill to disk past a memory threshold. Joining the event table above to a 100,000-row customer table is just SQL:
SELECT c.plan, count() AS purchases, sum(e.amount) AS revenue
FROM events AS e
INNER JOIN customers AS c ON e.customer_id = c.customer_id
WHERE e.event = 'purchase'
AND e.event_time >= '2026-10-24 00:00:00'
GROUP BY c.plan
ORDER BY revenue DESC;
Joins are not free in ClickHouse either; the join performance guide covers when they get slow. But they are a normal tool, not an exception.
Druid SQL is parsed by Apache Calcite and translated into native queries. Per the datasource docs, native joins use a broadcast hash join, so every datasource other than the leftmost one must fit in memory, and the feature is “intended mainly to allow joining regular Druid tables with lookup, inline, and query datasources.” Non-equality conditions can fall back to a cross join plus a filter. The SQL-based ingestion engine (multi-stage query tasks) adds a sort-merge join with no overall input size limit, but those run as batch tasks. Druid 38 also ships Dart, an experimental engine that runs interactive SELECT queries on Brokers and Historicals and performs large joins with parallel sort-merges. Druid’s own guidance is to join before ingestion where possible and use lookups for dimension values that change. One smaller surprise: non-aggregating Druid SQL queries can only ORDER BY __time.
Pinot ships two engines. The single-stage engine is the default and handles filter, aggregate and top-K queries in a scatter-gather model. Joins, window functions and subqueries need the multi-stage engine (SET useMultistageEngine=true), production-ready since Pinot 1.0.0. The docs note that it executes in memory without spill to disk and suggest Trino or Spark for heavy, ETL-style joins across many tables. Pinot 1.4.0 added a Lite Mode that caps rows returned per leaf stage so join and window queries can run safely at high QPS.
The practical reading: if analysts will write ad-hoc SQL with joins against your real-time store, ClickHouse is the most forgiving. If the queries are known in advance and generated by an application, Druid and Pinot’s restrictions rarely bite, because you model the data so the queries do not need joins.
Operations: how many moving parts
This is the cost that does not show up in a benchmark.
Druid splits work across service roles described in its architecture docs: Coordinator (segment availability), Overlord (ingestion task assignment), Broker (queries), Router (gateway), Historical (serves stored segments) and MiddleManager with Peons (runs ingestion tasks). It also depends on three external systems: deep storage (usually S3 or HDFS), a metadata database (usually PostgreSQL or MySQL) and ZooKeeper. Roles can be co-located on fewer machines, but you still understand and monitor each one. In return, Druid can query segments straight from deep storage, which makes cold history cheap to keep, at slower query speed.
Pinot has four node types: Controller, Broker, Server and an optional Minion for background tasks. Cluster state is managed by Apache Helix on top of ZooKeeper, and segments are backed by a deep store. Brokers and servers scale independently, which is how Pinot targets very high concurrency; its docs describe latencies as low as 10 ms at P95 and up to 100,000 queries per second as design targets. Tables, schemas, indexes and upsert settings are JSON configs managed through the controller; Pinot 1.6.0 added SQL DDL (CREATE TABLE and friends) that compiles to the same configs.
ClickHouse is a single binary. A single node is a complete, useful database, which is why many teams start there. Replication adds ClickHouse Keeper (or ZooKeeper) and ReplicatedMergeTree tables, and sharding adds Distributed tables you design yourself. The operational burden grows with scale rather than arriving all at once, but you own merges, part counts and sort-key design; the ClickHouse vs Snowflake comparison covers that operating surface in more depth.
The team size each one assumes
| Situation | Best fit | Why |
|---|---|---|
| Small data team, SQL-first analysts, one or a few nodes | ClickHouse | One process, full SQL, raw data kept |
| Customer-facing analytics on Kafka, thousands of concurrent users, mutable entity state | Pinot | Built-in stream tables, upserts, broker and server scale independently |
| Time-series event exploration with heavy rollup and long, cheap history | Druid | Time-chunk segments, rollup, query from deep storage |
| Platform team that can run several distributed services | Druid or Pinot | The built-in real-time plumbing pays off at scale |
| Ad-hoc BI with joins across many tables | ClickHouse | Broadest join support and planner choices |
None of these engines is a full warehouse replacement for heavy, many-table transformations; teams often model data upstream and serve it from whichever engine fits the query pattern. The same logic drives the ClickHouse vs BigQuery decision: match the engine to the shape of the query, not to the brand.
Which should you pick?
Pick Pinot when the product is the dashboard: analytics embedded for end users, fresh data from Kafka, very high query rates, and records that change, such as order or delivery status. Budget for a team that is comfortable with ZooKeeper, Helix, table configs and stream partitioning.
Pick Druid when your data is time-series events, rollup at ingestion is acceptable, you want long history kept cheaply in object storage, and queries are mostly filtered aggregations over time. Plan to denormalize before ingestion and to correct data by overwriting time ranges.
Pick ClickHouse when analysts write SQL against the data, joins and ad-hoc questions are normal, you want to keep raw rows and add rollups later, or you want to start on one node and grow. Be ready to assemble streaming ingestion yourself or use ClickHouse Cloud’s ClickPipes.
Where Goni fits
Whichever engine serves real-time traffic, most teams also need the layer above it: pipelines from operational databases, consistent metric definitions, dashboards and alerts. Goni is one option for teams that choose ClickHouse. Full disclosure: this is our product. It loads data from databases such as Postgres, MySQL, SQL Server, Snowflake and BigQuery into ClickHouse (yours or a managed one), and adds a YAML semantic layer, a SQL IDE, dashboards, alerts, scheduled reports, embedding and AI Q&A grounded in defined metrics. The drawback for this comparison is direct: ClickHouse is the only warehouse Goni queries, so it does not run on Druid or Pinot, and it is younger and not open source, unlike all three engines here. You can try it with the 14-day free trial.
FAQ
Is ClickHouse faster than Druid and Pinot?
There is no general answer, and vendor benchmarks disagree. All three return filtered aggregations in milliseconds when data is modelled well. Pinot targets very high concurrency for known query patterns, Druid gains from rollup and time partitioning, and ClickHouse stays fast on ad-hoc SQL and joins. Benchmark your own queries and data on current versions.
Does Apache Druid support joins?
Yes, with limits. Druid SQL supports INNER and LEFT joins, executed as broadcast hash joins, so every table except the leftmost must fit in memory. SQL-based ingestion tasks, and the experimental Dart engine in Druid 38, add a sort-merge join for large inputs. Druid’s docs recommend joining data before ingestion and using lookups for dimension values that change.
Can Apache Pinot do joins?
Yes, through the multi-stage query engine, enabled per query with SET useMultistageEngine=true. It supports joins, window functions and subqueries, and has been production-ready since Pinot 1.0.0. The default single-stage engine does not run joins. The multi-stage engine runs in memory without spilling, so very large joins are better done elsewhere.
Which real-time OLAP database supports updates?
Pinot supports upserts by primary key, full or partial on real-time tables, if the stream is partitioned by that key. ClickHouse supports UPDATE on MergeTree tables and the ReplacingMergeTree engine for latest-version rows. Druid does not support single-record updates; you overwrite whole time ranges with batch or SQL REPLACE jobs.
Is ClickHouse easier to operate than Druid or Pinot?
To start, yes. ClickHouse runs as one binary and a single node is a complete database. Druid needs several service roles plus deep storage, a metadata database and ZooKeeper, and Pinot needs at least a controller, broker and server plus ZooKeeper. At large scale, all three demand real operational work, and managed services exist for each.