Skip to content

Fixes #35383: Respect dbt source physical identifiers (2.0 backport) - #37644

Merged
ulixius9 merged 1 commit into
2.0from
backport-35680-dbt-source-identifiers-2.0
Nov 12, 2026
Merged

ulixius9 merged 1 commit into
2.0from
backport-35680-dbt-source-identifiers-2.0

Conversation

@ulixius9

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #35383

Backport of #35680 to 2.0. A dbt source can set identifier (the warehouse table) separately from its logical name. On 2.0 the source's table lookup uses name, so for name: orders, identifier: orders_v1:

  • the source's descriptions/tags/domain attach to an unrelated orders table, or are dropped;
  • lineage is emitted as orders → model instead of orders_v1 → model;
  • table filters and dbt test attachment use the wrong name.

Sources now resolve through the existing get_source_physical_name() helper in both the data-model loop and parse_upstream_nodes_with_names, as a literal name (an identifier such as events_* no longer wildcard-matches an arbitrary table). Models, seeds and snapshots are unchanged.

Applied as the net diff of #35680 (head 74370483d93). The only conflict was an import line in test_dbt.py.

Merge after #35680 lands on main.

Type of change:

  • Bug fix

Tests:

Same tests as #35680 (TestDbtSourceIdentifiers + manifest fixture), run on this branch:

Run Result
test_dbt.py + test_dbt_ingest.py 324 passed
TestDbtSourceIdentifiers with the fix 74 passed
TestDbtSourceIdentifiers against unpatched 2.0 metadata.py 55 failed, 19 passed

ruff format --check clean on both changed Python files.

Checklist:

  • Linked issue through Fixes #35383.
  • Regression tests fail without the fix.

🤖 Generated with Claude Code

Backport of #35680 to 2.0. dbt sources now resolve their warehouse table
through `identifier` instead of the logical `name`, for the source's own
metadata, upstream lineage, table filters and test attachment.
@gitar-bot

gitar-bot Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Physical-identifier lookup changes dbt source metadata attachment and lineage; mistakes could associate source details or dependencies with the wrong table.

Backports the dbt source physical identifier fix to 2.0, so sources resolve through get_source_physical_name() using the identifier rather than name for table lookup, lineage, filters and test attachment. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@ulixius9
ulixius9 marked this pull request as ready for review November 12, 2026 10:05
@ulixius9
ulixius9 requested a review from a team as a code owner November 12, 2026 10:05
@ulixius9
ulixius9 requested review from akashverma0786 and removed request for a team November 12, 2026 10:05
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@ulixius9
ulixius9 merged commit 8cecf3e into 2.0 Nov 12, 2026
114 of 116 checks passed
@ulixius9
ulixius9 deleted the backport-35680-dbt-source-identifiers-2.0 branch November 12, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant