Closed manuelateles closed 7 months ago
I keep looking into the views and the lineage, trying to find anymore structures that aren't working and I found that if I also use this way to indicate my coluns:
FROM [DBName].[SchemaName].[TableName1] ac, [DBName].[SchemaName].[TableName2] t, [DBName].[SchemaName].[TableName3] c, [DBName].[SchemaName].[TableName4] a
the lineage also doesn't work. I'll Keep posting any more finds I make
Affected module this is impacting the lineage
Describe the bug I'm working with SQL server. I've granted the user with the GRANT VIEW SERVER STATE. When i run the metadata ingestion I run into this problem:
I also get the following error for some other queries: Lineage computed with SqlFluff did not perform as expected for the [tsql] query: [CREATE view Vw_table
These errors appear multiple times in the metadata logs. And only the lineage of view tables is present, and the lineage of regular tables is missing.
I've also observed that when a view's query employs a UNION, the lineage mapping (when it works) includes the entire query. However, if the query utilizes a JOIN that involves a subquery, the lineage is only mapped to that subquery. For example, with this query, we have the lineage for all the views that are mentioned in the query
But for this query, the lineage only shows the table Table3 but not the Table1 table. It should show both. Is that related to the fact that we are using sub-queries?
I don't understand why these errors are happening. I also leave the link to the thead in Slack for any more information you may need: https://openmetadata.slack.com/archives/C02B6955S4S/p1710935109949359
Version: