Skip to content

feat(processing): optional dbt-polars Gold backend on Polaris Iceberg (parallel to dbt-spark) #1415

Open

Description

@malon64

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 build through 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 | trino is independent of spec.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

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 sizing

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

Activity

  1. added
    roadmap
    priority: P1
    track: workloads
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: P1roadmaptrack: workloadstype: feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions