Skip to content

v1.3.3

Choose a tag to compare

@github-actions github-actions released this 13 Nov 23:20
· 53 commits to main since this release
v1.3.3
e0338ae

Where a sync really reads from. For projects on PostgreSQL, drt docs can now show the physical tables a hand-written model reads, instead of only the profile — in the lineage graph, on each sync page, on the source pages and in the Overview table. Contributed by @Muawiya-contact. Opt-in and additive: the docs manifest moves to schema v8 (v1-v7 still load); nothing else changes.

Highlights

🧬 Table-level lineage from raw SQL (#1045)

Declare source: {type: postgres} in drt_project.yml, install the optional extra (pip install "drt-core[docs]", which brings SQLGlot), and a sync whose model is hand-written SQL lists the real tables it reads — public.customers, marketing.segments — instead of one generic profile node.

  • Only physical tables are listed: CTEs, derived tables and table-valued functions are not, and neither are write-capable statements (SELECT … INTO, data-modifying CTEs).
  • It is conservative: unparseable SQL, multiple statements, templated {{ … }} models and ref() models without a local .sql file keep the existing profile-level source rather than publishing a guess.
  • SQL text never enters the manifest, and relation names are built from identifiers only (a trailing /* comment */ cannot leak into a name). Note that the HTML YAML tab still shows the model as you wrote it, as before.
  • Manifest schema v8 adds an optional syncs[].sources list; syncs[].source stays the first relation for older consumers. ADR 0020.

📋 Sources column in the Overview table (#1328)

Every sync row in the Overview now links the sources it reads (all of them for a multi-source sync), and the 8+ sync filter can find a sync by a source table name.

Fixes

  • ADR 0020 linked to a non-existent ADR 0001 path, which made the drt-web docs sync fail its link check; fixed. The API reference now says manifest schema v8.

Postgres only for now; other dialects need their own fixtures and review.

Full changelog: v1.3.2...v1.3.3