See Rockset
in action

Get a product tour with a Rockset engineer

ClickHouse vs Apache Pinot

Compare and contrast ClickHouse and Apache Pinot by architecture, ingestion, queries, performance, and scalability.

Compare ClickHouse to Rockset here

Compare Apache Pinot to Rockset here

ClickHouse vs Apache Pinot Architecture

Architecture
ClickHouse
Apache Pinot
Deployment model
• Self-managed on-premises or on cloud infrastructure • Several managed cloud services available
PaaS or self managed
Use of storage hierarchy
• Designed to use hard disk drives for storage • Can also use SSD if available
Hot storage plus Deep Store for backup and restore operations
Isolation of ingest and query
No
No
Separation of compute and storage
No - although ClickHouse Cloud decouples compute and cloud storage
No, although StarTree separates compute and cloud storage, which is an important consideration for those considering StarTree vs. open-source Pinot
Isolation for multiple applications
No
Full isolation with replication

ClickHouse is open source and can be deployed anywhere. Several vendors such as ClickHouse, the company, and Tinybird also offer cloud versions. Compute and storage are tightly coupled, although ClickHouse Cloud was rearchitected to decouple compute and storage. ClickHouse Cloud pricing is based on compute and storage usage.

Pinot is a real-time distributed OLAP datastore that ingests both batch and streaming data. It has a distributed systems architecture that scales both horizontally and vertically, but unlike alternative OLAP databases, it does not decouple storage and compute. It supports both self-managed and PaaS options.


ClickHouse vs Apache Pinot Ingestion

Ingestion
ClickHouse
Apache Pinot
Data sources
• Core integrations for ingestion from Kafka, S3, Google Cloud Storage • Other partner and community integrations available
Streaming • AWS Kinesis • Apache Kafka Batch • Cloud Storage • PostgreSQL • MySQL • Snowflake • Google BigQuery File upload Write API
Semi structured data
• JSON Object type for handling nested JSON • Automatically infers schema from a subset of rows
Support for JSON column types, but JSON must first be converted to a string
Transformations and rollups
Yes - several storage engines can pre-aggregate data
Yes

ClickHouse has core integrations from common sources such as Kafka and S3. It recently introduced greater ability to handle semi-structured data using the JSON Object type and automatic schema inference.

Pinot supports high-performance ingest from streaming data sources. Each table is either offline or real time. Real-time tables have a smaller retention period and scale based on ingestion rate while offline tables have a larger retention period and scale based on the amount of data. In order to persistently store the generated segments that make up a table, you will need to change controller and server configs to add deep storage.

ClickHouse vs Apache Pinot Performance

Performance
ClickHouse
Apache Pinot
Updates
• Writes to immutable files • Updates rewrite and merge data files asynchronously • Frequent updates are not recommended due to potential for large rewrites
• By default, all data in Pinot is immutable • Upserts only supported for streaming ingest • No support for upserts on data using the star tree index • No support for upserts on out-of-order events
Indexing
• Primary indexes use sparse indexing on data ordered by primary key • Secondary data skipping indexes
• Manually configured • Forward index, inverted Index, Star-Tree index (columnar), bloom filter, range index, search index, JSON index, geospatial index, timestamp index
Query latency
Sub-100ms to seconds, optimized for large-scale aggregations
50-1000ms queries on 100s of TB
Storage format
• Column-oriented • Heavily compressed to minimize storage footprint
Pinot stores data in a columnar format and adds additional indexes to perform fast filtering, aggregation and group by
Streaming ingest
Recommends inserting in batches of >1000 rows and <1 insert per second
1-2 second ingest for streaming data

ClickHouse leverages column orientation and heavy compression for better performance on analytics workloads. It also uses indexing to accelerate queries as well. While ClickHouse use cases often involve streaming data from Kafka, batching data is recommended for efficient ingestion.

Like its competitors, Pinot can achieve sub-second query latency at high concurrency. However, this level of performance requires tuning, management, and deep expertise. Compared with the open-source version, the PaaS versions of Pinot address some of these issues, but similarly require expertise while making tradeoffs affecting query performance.


ClickHouse vs Apache Pinot Queries

Queries
ClickHouse
Apache Pinot
Joins
Yes
SQL joins limited to inner join, left-outer, and semi-join
Query language
SQL
SQL
Developer tooling
• API for querying SQL via POST command • Python, Java, Node.js and Go language clients
• API for querying SQL via POST command • Clients for JDBC, Java, Python, and Golang • Integrations with Trino and Presto
Visualization tools
Integrations with Metabase, Superset, Grafana, Tableau, Deepnote and Rocket BI
Integrations with Tableau and Superset

ClickHouse uses SQL for querying, with support for SQL joins. ClickHouse integrates with some common tools for visual analytics, including Superset, Grafana and Tableau.

In Pinot, SQL-like queries are received by brokers and scatter the request between real-time and offline servers. The two tables then process requests, send results back to the broker, and responds with the result. Joins are limited, as is support for UDFs and subqueries, making Pinot more or less useful depending on the use case.


ClickHouse vs Apache Pinot Scalability

Scalability
ClickHouse
Apache Pinot
Vertical scaling
Scale up single-node ClickHouse for vertical scaling
All 4 pinot node types can be resized manually
Horizontal scaling
• Compute and storage scaled in lockstep • Data rebalanced to populate newly added nodes • Cloud offerings automate some of the scaling and rebalancing effort
• Users can add additional Pinot nodes to scale horizontally • Rebalancing is manual

ClickHouse can be used in both single-node and distributed modes. Tight coupling of compute and storage and the need to rebalance data make scaling out more complex, but cloud versions of ClickHouse help automate this process.

Pinot allows for vertical scaling by increasing CPU and memory for each node as well as horizontal scaling by adding additional nodes. Capacity planning is a time-consuming, iterative, and manual task. It involves load testing and tuning across multiple vectors including read QPS, write QPS, number of streaming partitions, daily data size, retention period, types of workloads, number and type of segments, and much more.