Repository navigation
Open
Labels
priority: P1Core release payload — the milestone's stated goalroadmapIndustrialization roadmap itemtrack: workloadsIngestion, sizing, scale, benchmarktype: feature
Description
Goal — v0.9-beta experimental processing backend (parallel to dbt-spark)
Add dbt-polars as an optional Gold processing engine for single-node, ephemeral Kubernetes Jobs over Apache Iceberg + Polaris REST Catalog. This is an alternative to, not a replacement or prerequisite for, #880/#886/#887 (dbt-spark). Do not alter the supported default dbt-trino.
Architecture and invariants
- Only dbt owns Gold business transformations. Run
dbt buildthrough the maintained dbt-polars adapter; no direct Floe/Polars scripts producing Gold outside dbt. - Separate roles from arch(compute): independent Query Engine and dbt Gold Processing Engine, including Trino-free profiles #879:
spec.processing.gold.engine: polars | spark | trinois independent ofspec.query.engine: trino | duckdb. Polars is Gold compute, not a multiuser SQL query service. - Polars executes SQL/DataFrame plans; PyIceberg performs catalog commits and Iceberg metadata operations. Do not assume native SQL DML/CTAS/replace support equals adapter behavior.
- Keep stage-scoped Polaris authorization, SeaweedFS/S3 credential vending, the same Iceberg tables, Dagster dbt assets/tests/run artifacts/OpenLineage, immutable ProjectRevision, and DEV/PROD isolation.
- Stay opt-in/experimental until atomicity, adapter parity, security, cross-engine reads, and resource tests pass. Spark development proceeds independently. Cloud Glue/Azure support is separately gated, not presumed.
- The default continues to be Trino query + dbt-trino Gold; no new resident service when Polars is not selected.
Implementation map
- Runtime / K8s / credentials (feat(polars): ephemeral stage-scoped dbt-polars Kubernetes Gold runtime #1416): implementation issue to build a pinned, ephemeral per-run dbt-polars image/Job with CPU/memory/scratch controls, StageAccount and Polaris Iceberg configuration.
- Adapter / dbt model correctness (test(dbt-polars): Iceberg atomicity, incremental semantics and adapter conformance #1417): implementation issue covering dbt SQL dialect,
source()/ref(), table/full refresh/incremental semantics, PyIceberg commits, schema and partition evolution, snapshots, Dagster artifacts and lineage. - Convergence and comparison: extend test(engines): benchmark and K3s E2E for dbt-spark / dbt-polars Gold with DuckDB queries #891 for Polars alongside Spark/Trino, including kind/K3s E2E, failures, memory/CPU/cold starts, and cross-engine read through Trino/DuckDB.
- Shared platform contracts: extend arch(compute): independent Query Engine and dbt Gold Processing Engine, including Trino-free profiles #879 (profile choice), feat(platform): Trino-free deployment, Iceberg maintenance and capability gating #890 (no-Trino Slim/maintenance + capability checks); do not duplicate shared DuckDB-query feat(query): DuckDB read-only ad hoc engine for Slim and Trino-free Spark/dbt profiles #547/feat(duckdb): isolated on-demand Iceberg query workers with Dex/Polaris authorization #888/refactor(query): engine-neutral FastAPI, Portal and CLI query execution/discovery contracts #889 or Iceberg maintenance Add Iceberg compaction and storage lifecycle to bound physical footprint #173/feat(platform): Trino-free deployment, Iceberg maintenance and capability gating #890.
- Spark track remains feat(processing): dbt-spark Gold backend on Kubernetes over Polaris/Iceberg #880/feat(spark): stage-scoped dbt-spark SQL runtime and distributed Kubernetes execution #886/feat(dbt): make Gold dbt adapters portable across Trino and Spark with Iceberg conformance #887; every engine must qualify independently before a Trino-free pairing with DuckDB.
Proposed deployment profile (illustrative, gated)
spec:
preset: slim
query:
engine: trino # or duckdb, independently qualified
size: small
processing:
gold:
engine: polars # or spark/trino
size: small # single-node pod limits, not distributed Spark sizingDefinition of done
- All existing reference Gold dbt models build on Polars into the same stage-isolated Iceberg catalog (no parallel fork of SQL projects).
- Atomic overwrite of existing tables proven; failed initial creation never exposes a partially populated Gold relation (or explicitly blocked until a safe staging/publish solution).
- Incremental merge/append correctness, idempotence, concurrent writes, snapshot survival and rollback tested; OOM/pod-kill cannot expose partial changes.
- Credentials and S3 endpoint/path-style work on actual local Polaris+SeaweedFS; no static cross-stage credential leakage.
- Dagster dbt assets, tests, run_results, manifests, OpenLineage and OpenMetadata identifiers remain consistent.
- Polars Gold snapshots are readable by Trino and DuckDB, with no copy/conversion.
- Default dbt-trino and independent dbt-spark trajectories stay unchanged.
- Support matrix lists unsupported dbt constructs, providers and sizes; enable only after test(engines): benchmark and K3s E2E for dbt-spark / dbt-polars Gold with DuckDB queries #891 conformance.
Related: #879 #880 #886 #887 #890 #891 #547. Milestone: v0.9-beta (#10); optional P1, not a mandatory v0.8/on-prem install blocker.
Metadata
Metadata
Assignees
Labels
priority: P1Core release payload — the milestone's stated goalroadmapIndustrialization roadmap itemtrack: workloadsIngestion, sizing, scale, benchmarktype: feature
Activity