Repository navigation
Open
Labels
priority: P1Core release payload — the milestone's stated goalroadmapIndustrialization roadmap itemtrack: workloadsIngestion, sizing, scale, benchmarktype: feature
Description
Split implementation tasks (v0.8)
- feat(spark): stage-scoped dbt-spark SQL runtime and distributed Kubernetes execution #886 — Spark runtime and dbt SQL connectivity on Kubernetes (transport feasibility, driver/executors, IAM/network, lifecycle, sizing).
- feat(dbt): make Gold dbt adapters portable across Trino and Spark with Iceberg conformance #887 — dbt adapter and Iceberg semantic conformance (profiles, existing Gold projects, merge/replace, manifests, artifacts, Dagster lineage).
- feat(platform): Trino-free deployment, Iceberg maintenance and capability gating #890 — Optional combined Trino-free platform (only after independently qualified Spark and DuckDB + maintenance).
- test(engines): benchmark and K3s E2E for dbt-spark / dbt-polars Gold with DuckDB queries #891 — End-to-end K3s benchmark and correctness gate.
- Parallel DuckDB query work: 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. No need to finish DuckDB to start Spark.
v0.8 — Spark processing track (P1, parallel with DuckDB query)
Goal: make Apache Spark the selectable compute backend for dbt Gold, running distributed on Kubernetes against the existing Polaris Iceberg catalog. Spark must never become an alternate standalone Gold transformation framework. Work starts in parallel with #547 (DuckDB query); only the final no-Trino E2E waits for both tracks.
Mandatory invariants
- Every Gold table is built from existing
lakehouse_code/gold/<product>/dbtmodels through dbt build; tests, macros, versions, manifest, run_results, Dagster asset keys, lineage and reproducibility remain preserved. - Selecting
processing.gold.engine: sparkmust not itself changequery.engine; Trino can remain the query backend during Spark development. Once query=duckdb is qualified, run the full Trino-free combination. - No naked PySpark DataFrame writer,
spark.sqlbypass, or direct SparkApplication-to-Gold path as a substitute for dbt. - Stage isolation and immutable ProjectRevision/promotion; Polaris/Glue provider compatibility individually gated.
Explicit sub-workstreams (separate implementation issues)
- dbt-spark connection/runtime feasibility and orchestration: determine the version-pinned supported adapter/transport (Spark Thrift Server, Livy, or another proven connection method), its actual K8s driver/executor lifecycle and operating cost, and deploy a stage-scoped processing runtime. Do not assume an ephemeral SparkApplication alone implements dbt-spark's SQL connection protocol. Hard fail if no workable execution topology.
- dbt profile/materialization conformance: adapter-specific environment profile and stage-neutral manifest strategy; Iceberg REST and S3 credentials,
table+ atomic replace, incremental/merge, full refresh, tests, schema/catalog naming, crash recovery; prove actual existing reference products. - Dagster operations:
dbt_assets, run status, cancellation, logs/artifacts, OpenLineage, autosizing and node failures. - Cross-engine read path: Spark commits Gold; Trino and DuckDB both read the same table immediately after commit with no data copy and consistent snapshots.
Target profile (conditional support)
spec:
query:
engine: duckdb # or trino during migration
size: small
processing:
gold:
engine: spark
size: mediumAcceptance
- One existing dbt Gold project runs via Spark and produces correct Iceberg output from Floe Silver.
- Document pinned versions, supported dbt-spark connection, Spark deployment topology, resource limits and whether a permanent SQL service is unavoidable.
- Automated conformance: table replace, incremental MERGE, full refresh, rerun/idempotence, failed partial write, tests and schema consistency.
- Dagster dbt artifacts and lineage match existing contracts and DEV/PROD isolation.
- Existing Trino query path still works with Spark Gold; DuckDB query path also works at convergence.
- No-Trino mode must not depend on Trino Gold maintenance, credential jobs, BI endpoint or SQL service.
- K3s multi-node execution, worker failure and actual performance/footprint measured; do not assert heavy-workload superiority without evidence.
Parallel dependencies: #879 architecture; #547 DuckDB queries are not a blocker to Spark development. Coordinate with #546 #324 #802 #803 #804. v0.8 experimental/additive; not a P0 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
[-]feat(gold): qualify dbt-spark over Kubernetes, Polaris and Iceberg as optional processing backend[/-][+]feat(processing): dbt-spark Gold backend on Kubernetes over Polaris/Iceberg[/+]malon64 commentedon Nov 19, 2026
Moved from v0.8-beta to v0.9-beta (2026-11-19): v0.8 qualifies the current stack (Trino + dbt-trino) on cloud and on-premises; separating the compute and query engines follows in v0.9, which already targets scale-to-zero and burst capacity for batch and query.