Skip to content

[2.0] Fixes #35755: resolve Unity Catalog upstreams across cross database services (#35756) - #35919

Merged
Khairajani merged 1 commit into
2.0from
backport/2.0-uc-cross-service-lineage
Oct 22, 2026
Merged

Khairajani merged 1 commit into
2.0from
backport/2.0-uc-cross-service-lineage

Conversation

@Khairajani

@Khairajani Khairajani commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #35755

Backport of #35756 to 2.0: Unity Catalog lineage looks an upstream up in Cross Database Service Names (own service first, then in order) when Process Cross Database Lineage is on, instead of silently dropping edges whose upstream was ingested under another service. A failed lookup stops the search, and an unresolved or failed upstream is a run-status warning, once per upstream.

Cherry-picked from 5f72d9a. Conflicts resolved:

  • lineage.py: 2.0 has no metric-view lineage, so only the two new attributes were kept from that block, plus the model_str import it brought in.
  • ingestion/.ruff-g004-baseline.json: not on 2.0, dropped.

Type of change:

  • Bug fix

Tests:

Unit tests

  • Backported test_unity_catalog_lineage.py, test_unitycatalog_self_referencing_lineage.py (2.0 Databricks/Unity Catalog unit tests: 530 passed)

Manual testing performed

E2E against real Databricks on the main PR: see #35756.

Checklist:

  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

Unity Catalog lineage can now find upstream tables in other configured database services.

  • Unity Catalog lineage finds upstream tables across configured services.

No actionable issues were found. Tests were inspected but not run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Resolve target in local service] --> B{Target found?}
  B -->|No| C[Skip target]
  B -->|Yes| D[Look up upstream in local service]
  D --> E{Lookup result}
  E -->|Found| F[Emit edge using resolved tables]
  E -->|Failed| G[Warn once and skip edge]
  E -->|Missing| H{Another configured service?}
  H -->|Yes| I[Look up upstream in next service]
  I --> E
  H -->|No| G
Loading

Reviews (1) · Last reviewed commit: "Fixes #35755: resolve Unity Catalog upst..." · Reviewed by Greptile

…ervices (#35756)

* Fixes #35755: resolve Unity Catalog upstreams across cross database services

The system tables cover the whole metastore, so an edge into this service
can start at a table another service ingested. Look the upstream up in
crossDatabaseServiceNames, in order, when processCrossDatabaseLineage is on,
and report an unresolved upstream as a run warning instead of a debug log.

* docs: record the Unity Catalog cross-service upstream rule

* ingestion: cite the cross-service upstream decision record

* ingestion: stop the upstream search on a failed lookup

A failed request is not a miss: the table may exist in the service that
failed, and moving on would link a same-named table in a later service.

* ingestion: report a failed upstream lookup on the run status

A lookup that fails now stops the search and is reported as a warning,
like an upstream no searched service holds, instead of a DEBUG log.

* ingestion: prune the G004 baseline entry the lineage change removed

(cherry picked from commit 5f72d9a)
@Khairajani
Khairajani requested a review from a team as a code owner October 22, 2026 03:55
@Khairajani
Khairajani requested review from stout-yeoman and removed request for a team October 22, 2026 03:55
@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.

@Khairajani Khairajani added the safe to test Add this label to run secure Github workflows on PRs label Oct 22, 2026
@gitar-bot

gitar-bot Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🔴 High risk · Cross-service upstream resolution changes persisted lineage edges; duplicate table names may link an edge to the wrong first-matching service table.

Unity Catalog lineage now resolves upstreams across Cross Database Service Names when cross-database lineage is enabled, so edges are no longer silently dropped when an upstream was ingested under another service. 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

@sonarqubecloud

Copy link
Copy Markdown

@Khairajani
Khairajani merged commit 1513433 into 2.0 Oct 22, 2026
103 of 114 checks passed
@Khairajani
Khairajani deleted the backport/2.0-uc-cross-service-lineage branch October 22, 2026 07:27

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants