# Apache Pinot

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

- Category: Retrieval & Knowledge (RAG) / Vector Databases
- Language: Java
- Licence: Apache-2.0
- Repository: https://github.com/apache/pinot
- Website: https://pinot.apache.org/
- Canonical page: https://ai-tldr.dev/tools/apache-pinot/

## In short

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.

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.

1. 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.

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

2. 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.

```text
SELECT playerID, SUM(homeRuns) AS totalHomeRuns
FROM baseballStats
GROUP BY playerID
ORDER BY totalHomeRuns DESC
LIMIT 3;
```

3. 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.

```bash
docker stop pinot-quickstart
```

4. Or build from source

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

```bash
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
```

## 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
