Skip to content

v0.28.2

Latest

Choose a tag to compare

@haillew haillew released this 02 Dec 07:34
cb0f8fa

v0.28.2 — targets with a database resolve as the main target

Summary

v0.28.2 fixes dataflows failing at pipeline start with ValueError: Staging table not found for CDC settings retrieval: <table>. When a target sets database, the runtime names the table database.table, but some spec types wrote the flow's targetTable as the bare table. The two names didn't match, so the framework treated the flow as writing to a staging table that doesn't exist.

The database.table naming rule now lives in one helper, used by the runtime and by every spec transformer. As a fallback, a flow that names the main target without its database is resolved to the main target at runtime.

Framework change: utility.py (qualify_table_name), dataflow.py, flow_group.py, targets/base.py, the nodespec, materialized_view and standard spec transformers, flows.rst docs, unit tests. VERSION is v0.28.2.

What's fixed

Targets with a database failed with "Staging table not found" (#180, #183)

  • Before: these specs failed when the pipeline started:
    • a nodespec materialized-view target with database set, for example source → SQL transformation → MV
    • a materialized_view spec with tableDetails.database and a sourceView
    • a flow spec whose flow names the main target as the bare table while targetDetails.database is set
    • a standard spec with "database": "", which produced the target name .table
  • After: all of these resolve as the main target, and their tables are created and loaded.
  • A staging table with the same name always takes precedence, whether or not it is qualified, so a staging flow is never moved to the main target.
  • Docs: flows.rst notes that targetTable can name the main target as database.table or as the bare table.
  • Verified on a serverless pipeline before and after the fix. The same specs fail with the #180 error on v0.28.1 and load the expected rows on v0.28.2.

Upgrade notes

Pipelines with a target that sets database (in particular materialized views): upgrade to v0.28.2. A normal refresh is enough; no full refresh is needed.

All other pipelines: no action required. Transformer output for all existing samples is unchanged. An in-place upgrade from v0.28.1 was tested with a normal refresh of every feature-sample pipeline: all completed, no table lost rows, and streaming tables continued from their checkpoints.