Replies: 2 comments
-
|
This one sat unanswered for a while — sorry to bump it late, but the cross-database MSSQL case has a couple of sharp edges worth writing up for anyone else landing here from search. Two things have to work for cross-database lineage to show up: 1) The parser has to recognize OpenMetadata's parser path for MSSQL has historically had trouble with square-bracket identifiers that span databases — this is tracked as #16424, and the root cause was a greedy regex 2) OpenMetadata has to have both databases registered as entities. Even when the parser returns a clean 3-part name, the lineage push ( A pragmatic path that works today: We've been maintaining a small open companion tool — Concrete example on the exact shape of SQL this discussion is asking about: CREATE VIEW [ReportDB].[dbo].[vw_CustomerOrders] AS
SELECT
[SalesDB].[dbo].[Customers].[CustomerID],
[SalesDB].[dbo].[Customers].[CustomerName],
[SalesDB].[dbo].[Orders].[OrderID],
[SalesDB].[dbo].[Orders].[OrderDate]
FROM [SalesDB].[dbo].[Customers]
INNER JOIN [SalesDB].[dbo].[Orders]
ON [SalesDB].[dbo].[Customers].[CustomerID] = [SalesDB].[dbo].[Orders].[CustomerID]Dry-run output: Usage: pip install gsp-openmetadata-sidecar
gsp-openmetadata-sidecar \
--sql-file your_crossdb_query.sql \
--db-vendor dbvmssql \
--dry-runCaveat it shares with any other tool: both More details if useful — the cross-database bracket case, temp-table chains, and MERGE are all walked through with runnable examples:
Happy to look at a scrubbed sample of your actual cross-database query and report back what lineage it pulls out — often the specific shape of the SQL (stored-proc-wrapped? view? synonym? linked-server?) changes which layer is actually breaking. (Disclosure: I work at Gudu Software, which builds the SQLFlow engine behind the sidecar. Sidecar is free to use; backend has an anonymous tier and a self-hosted Docker option for teams that need data to stay inside their network.) |
Beta Was this translation helpful? Give feedback.
-
|
@ulixius9 @mohittilala can you answer this |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
Is "Processing Cross Database Lineage for Mssql" in roadmap of OpenMetaData team?
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions