Knowledge Base updated: 2026-11-10
Daft knowledge base
Daft is a distributed DataFrame engine with a Python-facing lazy API and native Rust implementation. Users compose DataFrame and expression operations, which become logical plans and execute locally or across distributed runners.
Core tabular state is represented by schemas, Series, RecordBatches, and micropartitions. Planning state lives in logical and physical plans; execution state is scoped through sessions, runners, task resources, and checkpoints.
Data enters through file, object-store, catalog, and SQL integrations, then flows through planning and execution to result collection or sink writers. UDFs and AI expressions extend computation while observability components expose runtime behavior.
flowchart TD
PY[Python DataFrame API] --> EXPR[Expressions and functions]
PY --> DF[Lazy DataFrame lifecycle]
DF --> LP[Logical plans and optimizer]
EXPR --> LP
SQL[SQL interface] --> LP
LP --> EP[Executable plans]
EP --> LOCAL[Local execution]
EP --> DIST[Distributed execution]
MODEL[Data model and micropartitions] --> LOCAL
MODEL --> DIST
ACCESS[Data access and persistence] --> LP
ACCESS --> SOURCES[Data sources and sinks]
ACCESS --> CATALOGS[Catalog integrations]
UDF[UDFs and aggregations] --> LOCAL
UDF --> DIST
AI[AI and multimodal workloads] --> EXPR
CTX[Sessions, checkpoints, and execution context] --> EP
OBS[Observability and dashboard] --> LOCAL
OBS --> DIST
Glossary
- Micropartition: Daft's partitioned tabular unit used to move RecordBatch-backed data through execution.
- Logical plan: A relational representation of lazy DataFrame work before physical execution.
- Runner: The local or distributed execution coordinator that evaluates executable plans.
- Actor pool UDF: A UDF execution form backed by reusable worker actors.
- Checkpoint: Persisted execution progress and state used by checkpoint-aware workflows.
Invariants
- Lazy DataFrame operations remain plan-oriented until a materialization entry point is reached; see
daft/dataframe/**andsrc/daft-dsl/**. - Tabular execution data is carried through Series, RecordBatch, and micropartition abstractions; see
src/daft-core/src/series/**andsrc/daft-micropartition/**. - Logical planning preserves schema information as relational operators are built and optimized; see
src/daft-logical-plan/**. - Execution backends consume planned work rather than Python transformation chains directly; see
src/daft-local-execution/**andsrc/daft-runner/**. - Data scans and sinks use shared IO configuration and pushdown-aware planning paths; see
src/daft-scan/**andsrc/daft-writers/**.
Routing table
| Scope | Documentation |
|---|---|
daft/dataframe/**, src/daft-dsl/**, src/daft-python/** | DataFrame API and lazy workflows |
daft/dataframe/**, src/daft-python/src/dataframe/** | Lazy DataFrame lifecycle |
daft/expressions/**, src/daft-dsl/**, src/daft-functions/** | Expressions and functions |
src/daft-core/src/array/**, src/daft-core/src/series/**, src/daft-micropartition/** | Data model and micropartitions |
src/daft-logical-plan/**, src/daft-optimizer/**, src/daft-algebra/** | Query planning and optimization |
src/daft-logical-plan/**, src/daft-optimizer/**, src/daft-local-plan/** | Logical plans and optimizer |
src/daft-sql/**, daft/sql/**, src/daft-python/src/sql/** | SQL interface |
src/daft-runner/**, src/daft-execution/**, src/daft-physical-plan/** | Execution engines |
src/daft-local-execution/**, src/daft-physical-plan/**, src/daft-scan/** | Local execution |
src/daft-runner/**, src/daft-ray/**, daft/runners/** | Distributed execution |
src/daft-io/**, src/daft-scan/**, src/daft-writers/** | Data access and persistence |
src/daft-scan/**, src/daft-writers/**, src/daft-io/** | Data sources, scans, and sinks |
src/daft-catalog/**, src/daft-iceberg/**, src/daft-deltalake/**, src/daft-hudi/** | Catalog and table integrations |
src/daft-udf/**, daft/udf/**, src/daft-functions/** | Extensibility and custom compute |
src/daft-udf/**, daft/udf/**, src/daft-python/src/udf/** | UDFs and aggregations |
src/daft-ai/**, daft/ai/**, src/daft-functions/src/ai/** | AI and multimodal workloads |
src/daft-session/**, src/daft-context/**, src/daft-checkpoint/** | Sessions, checkpoints, and execution context |
src/daft-dashboard/**, src/daft-tracing/**, src/daft-metrics/**, daft/dashboard/** | Observability and dashboard |