# Repository Briefing: apache/pinot
> Source: https://repoforai.com/repo/apache/pinot (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/apache/pinot
- **Official Docs / Website**: https://pinot.apache.org/
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Java
- **License**: Apache-2.0
- **Engineering Health**: A+ (98/100 · Maintenance 35/35 · Adoption 23/25 · Releases 20/20 · License 20/20)
- **Latest Release**: release-1.6.0 (2026-10-23) — https://github.com/apache/pinot/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Self-Hosted, Docker, API
- **Momentum**: 6,181 ★ total (+0 24h / +6 7d) · 1,538 forks
- **Topics**: `ai-agents`, `analytics`, `database`, `distributed-database`, `java`, `kafka`, `olap`, `real-time-analytics`, `sql`, `vector-database`, `vector-search`
- **When to Use**: Best for: Teams serving live dashboards or agent-facing SQL over Kafka and batch data that also want vector retrieval in the same self-hosted datastore. Skip if: You mainly need managed vector search, a complete RAG pipeline, or do not have the capacity to operate a distributed database.

## Overview
```text
### Architecture & Core Mechanics
Apache Pinot is a Java, distributed columnar OLAP database. The controller handles table administration, brokers coordinate queries and combine results, and servers execute work against columnar data segments. Clients can submit SQL through REST. Batch and streaming ingestion feed the same segment-oriented serving architecture, so applications use SQL whether the source is Kafka or a batch store.

The Maven module layout separates `pinot-query-planner` and `pinot-query-runtime` from the server and segment layers. `pinot-connectors` and `pinot-plugins` separate ingestion and extension code from serving roles; `pinot-segment-spi` and `pinot-segment-local` distinguish segment interfaces from local implementation. Pluggable indexes put filtering, aggregation, text search, and vector retrieval on different access paths rather than forcing every workload through a vector index.

### Key Capabilities & Differentiators
Pinot's strongest fit is interactive SQL over fresh, multidimensional data: filter events, group them by time or business dimensions, aggregate metrics, and join facts with dimensions or other facts. Kafka serves continuous input; HDFS and object stores such as S3, Azure ADLS, and Google Cloud Storage supply batch data. Columnar compression and indexes such as inverted, range, Bloom filter, and StarTree give operators different ways to reduce query work.

HNSW vector indexing adds candidate retrieval for semantic search, recommendations, and RAG. This means one datastore can serve vector retrieval and analytical SQL, but it does not supply embedding generation, reranking, or answer synthesis. If the application needs retrieval constrained by metadata, benchmark the actual query shapes rather than assuming vector search and SQL filters will meet the same latency target in combination.

### Trade-offs & Limitations
The reason to choose Pinot over a managed vector service such as Pinecone is not vector search alone. It is the ability to serve fresh SQL aggregations and vector retrieval from one database while retaining control of ingestion and indexing. If retrieval is the only workload, that flexibility may not justify operating a distributed Java cluster and tuning segment layout and indexes.

With concurrent ingestion, aggregations, and vector lookups, measure tail latency, data freshness, and retrieval recall together. During a Lucene-format rollback, segment loading may rebuild text and HNSW indexes, consuming CPU and I/O and delaying availability. Recovery needs the original forward-index values; if they are missing, restore a compatible segment or rebuild from retained source data. Corruption and ordinary I/O errors fail the load rather than triggering format recovery.

### Hardware & Deployment Guide
For a local trial, allocate at least 6 GB to Docker and run the `apachepinot/pinot:1.6.0` image with `QuickStart -type batch`. The supplied example binds `127.0.0.1:9000:9000` for the query console and loads `baseballStats`, which is useful for checking SQL but does not exercise streaming or vector search. A production self-hosted deployment can use Kubernetes and the repository's `helm/` assets; plan capacity around segment footprint, index builds, ingestion rate, and concurrent queries.

Release 1.5.1 is a dependency-focused security patch without API or wire-format changes. Release 1.6.0 adds `CREATE TABLE`, `DROP TABLE`, `SHOW TABLES`, and `SHOW CREATE TABLE` through the controller's `/sql/ddl` endpoint, plus materialized-view DDL and single-stage query rewrite. Treat the Lucene 10 transition separately: new text and HNSW indexes are not readable by Pinot 1.5.x or earlier. Prepare 1.6.0 as the earliest supported rollback target and retain the original forward-index values needed for recovery.
```

## Key Capabilities
```text
- Ingestion: Kafka streams and batch input from HDFS, S3, Azure ADLS, or Google Cloud Storage.
- Query path: Brokers coordinate SQL queries over server-hosted columnar segments; applications can use the REST interface.
- Index selection: Inverted and range indexes support filtering, StarTree targets aggregations, and HNSW supports vector retrieval.
- Release 1.6.0: The controller exposes table management through `/sql/ddl`; materialized views gain DDL and single-stage query rewrite.
- Upgrade and rollback: Segment loading can rebuild incompatible Lucene text and HNSW indexes from retained forward-index values.
```

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