█

AI/TLDR

Buy me a coffee
Buy me a coffee

Apache Pinot

Real-time OLAP with SQL and vector search for user- and agent-facing apps

Vector DatabasesOpen source
Language
Java
License
Apache-2.0
$docker run --rm --name pinot-quickstart \
IN SHORT

What is Apache Pinot?

Apache Pinot is a real-time distributed OLAP datastore built to answer analytical SQL queries with low latency at high concurrency. It sits in the Vector Databases category of the Retrieval & Knowledge (RAG) tools and is open-source, written in Java and licensed Apache-2.0. To get started: start the batch quickstart container.

Overview

Apache Pinot is a real-time distributed OLAP datastore built to answer analytical SQL queries with low latency at high concurrency. It ingests from streams such as Apache Kafka, Apache Pulsar and AWS Kinesis and from batch sources such as Hadoop HDFS, Amazon S3, Azure ADLS and Google Cloud Storage, and can combine both into a single table you query with standard SQL through a built-in query console or a REST API.

Diagram of streaming, batch and SQL sources flowing into Pinot, which serves user-facing analytics, business metrics, anomaly detection and ad-hoc analysis.
Streaming, batch and SQL sources flow into Pinot, which serves user-facing analytics, metrics, anomaly detection and ad-hoc analysis.Apache Pinot README ↗

The project was built by engineers at LinkedIn and Uber. At LinkedIn it powers more than 50 user-facing products such as Who Viewed Profile and Talent Insights, and the README describes it ingesting millions of events per second while serving more than 100,000 queries per second at millisecond latency. It is column-oriented, horizontally scalable and fault-tolerant, and ships a Helm chart for Kubernetes.

For AI workloads, Pinot adds a vector index for similarity search, so the same tables that serve dashboards can back semantic search, recommendations and retrieval-augmented generation. The project also positions its fresh, low-latency SQL for agent-facing analytics — AI assistants and automated decision systems that query live data rather than a nightly export.

What it does

  • Low-latency SQL over petabyte-scale data, with the README citing P90 latencies in the tens of milliseconds
  • Real-time ingestion from Kafka, Pulsar and Kinesis plus batch ingestion from Hadoop, Spark and S3, combinable into one table
  • Vector similarity search index for semantic search, recommendations and RAG
  • Pluggable indexes: timestamp, inverted, StarTree, Bloom filter, range, text, JSON and geospatial
  • Upserts during real-time ingestion, fact/dimension and fact/fact joins, and built-in multitenancy
  • Cloud-native deployment on Kubernetes via the official Helm chart

Getting started

The README's Docker quickstart starts a single-container Pinot with a bundled baseball sample dataset. Give Docker at least 6 GB of memory.

Start the batch quickstart container

The first run downloads the image and loads sample tables, which can take a few minutes. Wait for `***** Quick start setup complete *****` in the logs.

bashbash
docker run --rm --name pinot-quickstart \
  -p 127.0.0.1:9000:9000 \
  apachepinot/pinot:1.6.0 QuickStart -type batch

Run a query in the console

Open the query console at http://localhost:9000/#/query and run the README's example — the players with the most recorded home runs.

texttext
SELECT playerID, SUM(homeRuns) AS totalHomeRuns
FROM baseballStats
GROUP BY playerID
ORDER BY totalHomeRuns DESC
LIMIT 3;
Animated walkthrough of the Apache Pinot web console, browsing tables and running a SQL query in the query console.
Pinot's built-in console: browse tables and run SQL against them.Apache Pinot README ↗

Stop the demo

The container and its demo data are removed. For streaming quickstarts and other ways to run Pinot, see the quickstart guide in the docs.

bashbash
docker stop pinot-quickstart

Or build from source

Pinot services need JDK 25+ to build and run. The bin-dist and shaded-jar profiles build the binary distribution.

bashbash
git clone https://github.com/apache/pinot.git
cd pinot
./mvnw clean install -DskipTests -Pbin-dist -Pbuild-shaded-jar
cd build/
bin/quick-start-batch.sh

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Reach for it when an application shows analytics to its own users and has to answer many concurrent queries in milliseconds
  • Reach for it when an AI assistant or agent needs to query fresh event data with SQL rather than a stale warehouse copy
  • Reach for it when you want vector similarity search for RAG or recommendations in the same store as your real-time metrics
  • Reach for it for time-series data with many dimensions and metrics streaming in from Kafka

How Apache Pinot compares

Apache Pinot alongside other open-source vector databases tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Supabase★ 116kManaged Postgres backend whose Vector toolkit (pgvector) stores, indexes, and queries embeddings next to transactional data.
Redis Cloud★ 77.8kFully-managed Redis with built-in vector search, offering low-latency similarity and hybrid queries over any embeddings.
Milvus★ 46.8kA distributed vector database for storing and searching billions of embeddings at scale, with multiple index types and Kubernetes-native deployment.
FAISS★ 42kA library from Meta for efficient similarity search and clustering of dense vectors, with both exact and approximate indexes.
Qdrant★ 35.8kA Rust-based vector search engine that stores embeddings with rich payload filtering for semantic search and recommendation systems.
Chroma★ 29.8kA developer-focused vector database designed for quickly building retrieval and RAG features with a simple Python and JavaScript API.
pgvector★ 23.9kA PostgreSQL extension that adds a vector data type and similarity search so you can store and query embeddings inside an existing Postgres database.
Apache Pinot★ 6.2kReal-time OLAP with SQL and vector search for user- and agent-facing apps