Repository navigation
Fixes #35755: resolve Unity Catalog upstreams across cross database services - #35756
Conversation
…ervices 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.
❌ 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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
1 similar comment
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
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.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
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.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
1 similar comment
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
🚦 Removed from the merge queue —
|
Code Review ✅ Approved 2 closed / 2 findings🟡 Medium risk · Unity Catalog now resolves upstream lineage across configured services, so ambiguous same-named tables could attach edges and column mappings to the wrong table. Resolves Unity Catalog upstreams across cross database services by searching configured Cross Database Service Names when the toggle is on, with own service checked first. Failed upstream lookups now stop the search and report a run-status warning instead of dropping the edge silently at DEBUG, and the cross-service rule is recorded in a decision record. No open issues found. ✅ 2 closed✅ Quality: Cross-service upstream-only resolution rule has no decision record
✅ Edge Case: Failed upstream lookup drops the edge silently at DEBUG
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 |
|
…ervices (#35756) (#35919) * 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)



Describe your changes:
Fixes #35755
The Unity Catalog system tables cover the whole metastore, but the lineage source resolved an upstream only in its own
serviceNameand dropped the edge at DEBUG, so lineage from a table ingested under another service was lost behind a 100% success run.ADR:2026-10-19-unity-catalog-lineage-resolves-only-upstreams-across-services.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
test_unity_catalog_lineage.py,test_unitycatalog_self_referencing_lineage.py(Databricks/Unity Catalog unit tests: 721 passed)Backend integration tests
Ingestion integration tests
Manual testing performed
E2E against a real Databricks workspace and a fresh local OpenMetadata stack (2.0 server from a recent OSS branch; this PR has no server changes), real
metadata ingestCLI:src.orders → dst.orders_copy → dst.orders_summaryandother.refunds → dst.orders_refundswith CTAS; ingested schemasrcanddstas two Unity Catalog services (othernot ingested).dstservice with Process Cross Database Lineage on and thesrcservice listed. The test user had nosystem.accessgrant, so the lineage Databricks recorded for these writes (lineage-tracking API) was copied into tables with thesystem.accesscolumns and the connector's SQL pointed at them; nothing else was changed.mainsrc.orders → dst.orders_copy(other service)dst.orders_copy → dst.orders_summary(same service)other.refunds → dst.orders_refunds(not ingested)UI screen recording:
Not applicable — ingestion-only change.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.docs/decisions/.🤖 Generated with Claude Code
Summary by Gitar
This will update automatically on new commits.


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issues were found.Summary
Unity Catalog lineage can now find upstream tables in other configured services while keeping targets in the current service.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Resolve target in current service] --> B{Target found?} B -->|No| C[Skip edge] B -->|Yes| D[Look up upstream in current service] D --> E{Lookup result} E -->|Found| F[Emit edge with resolved columns] E -->|Request failed| G[Warn once and skip edge] E -->|Not found| H{Cross-service search enabled?} H -->|No| G H -->|Yes| I[Try configured services in order] I --> J{Lookup result} J -->|Found| F J -->|Request failed or all missing| GReviews (6) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile