Repository navigation
[2.0] Fixes #35755: resolve Unity Catalog upstreams across cross database services (#35756) - #35919
Conversation
…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)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
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. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



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 themodel_strimport it brought in.ingestion/.ruff-g004-baseline.json: not on 2.0, dropped.Type of change:
Tests:
Unit tests
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
mainPR: see #35756.Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code


Confidence 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.
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| GReviews (1) · Last reviewed commit: "Fixes #35755: resolve Unity Catalog upst..." · Reviewed by Greptile