<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Data lineage on views in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/data-lineage-on-views/m-p/38470#M5515</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85354"&gt;@Henrik&lt;/a&gt;&amp;nbsp;&amp;nbsp;Good day!&lt;/P&gt;&lt;P&gt;I tried to repro this issue internally and I was able to repro this, this seems like limitation that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Unity Catalog captures lineage to the column level as much as possible. However, there are some cases where column-level lineage cannot be captured.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I checked view defination under details after altering the view to depend only on table_1. I found that view defination was updated with latest view but it's not getting reflected in lineage graph.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/data-governance/unity-catalog/data-lineage.html#limitations" target="_blank"&gt;https://docs.databricks.com/data-governance/unity-catalog/data-lineage.html#limitations&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay M R&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 09:54:08 GMT</pubDate>
    <dc:creator>Vinay_M_R</dc:creator>
    <dc:date>2023-07-26T09:54:08Z</dc:date>
    <item>
      <title>Data lineage on views</title>
      <link>https://community.databricks.com/t5/get-started-discussions/data-lineage-on-views/m-p/38448#M5513</link>
      <description>&lt;P&gt;I do not know if this is intended behavior of data lineage but for me it is weird.&lt;BR /&gt;When I create a view based on two tables the data lineage upstream looks correct. But when I replace the view to only use one of the tables, then data lineage upstream still telling me that the view is based on the two tables.&lt;BR /&gt;When I read the documentation, it looks like data lineage is based on history for the view for the last 30 days, but a view does not work with history the same way as a table, so to me this is weird.&lt;BR /&gt;Can anyone give some more details on this strange behavior?&lt;BR /&gt;This is my script for testing this:&lt;/P&gt;&lt;P&gt;/* create 2 tables */&lt;BR /&gt;create table if not exists test.test.table_1&lt;BR /&gt;(id int not null&lt;BR /&gt;,name string);&lt;/P&gt;&lt;P&gt;insert into test.test.table_1&lt;BR /&gt;values (1, "test 1");&lt;/P&gt;&lt;P&gt;create table if not exists test.test.table_2&lt;BR /&gt;(id int not null&lt;BR /&gt;,name string);&lt;/P&gt;&lt;P&gt;insert into test.test.table_2&lt;BR /&gt;values (1, "test 2");&lt;/P&gt;&lt;P&gt;/* create a view depending on the to tables */&lt;/P&gt;&lt;P&gt;create or replace view test.test.view_1 as&lt;BR /&gt;select&lt;BR /&gt;a.id&lt;BR /&gt;, b.name&lt;BR /&gt;from&lt;BR /&gt;test.test.table_1 as a&lt;BR /&gt;inner join test.test.table_2 as b&lt;BR /&gt;on a.id=b.id;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Data lineage for view is correct upstream for the view are table_1 and table_2&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;/* now change the view to depend only on table_1 */&lt;BR /&gt;alter view test.test.view_1 as&lt;BR /&gt;select&lt;BR /&gt;a.id&lt;BR /&gt;, a.name&lt;BR /&gt;from&lt;BR /&gt;test.test.table_1 as a;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Data lineage has not changed! - we still have both tables in upstream for the view&lt;BR /&gt;*/&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 07:07:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/data-lineage-on-views/m-p/38448#M5513</guid>
      <dc:creator>Henrik</dc:creator>
      <dc:date>2023-07-26T07:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data lineage on views</title>
      <link>https://community.databricks.com/t5/get-started-discussions/data-lineage-on-views/m-p/38470#M5515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85354"&gt;@Henrik&lt;/a&gt;&amp;nbsp;&amp;nbsp;Good day!&lt;/P&gt;&lt;P&gt;I tried to repro this issue internally and I was able to repro this, this seems like limitation that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Unity Catalog captures lineage to the column level as much as possible. However, there are some cases where column-level lineage cannot be captured.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I checked view defination under details after altering the view to depend only on table_1. I found that view defination was updated with latest view but it's not getting reflected in lineage graph.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/data-governance/unity-catalog/data-lineage.html#limitations" target="_blank"&gt;https://docs.databricks.com/data-governance/unity-catalog/data-lineage.html#limitations&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay M R&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 09:54:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/data-lineage-on-views/m-p/38470#M5515</guid>
      <dc:creator>Vinay_M_R</dc:creator>
      <dc:date>2023-07-26T09:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data lineage on views</title>
      <link>https://community.databricks.com/t5/get-started-discussions/data-lineage-on-views/m-p/38536#M5516</link>
      <description>&lt;P&gt;After some thoughts, i have come to this conclusion:&lt;/P&gt;&lt;P&gt;Data lineage on views is working as one should expect. I strongly recommend that this feature is redesigned so it shows the result of the lastest view.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 06:21:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/data-lineage-on-views/m-p/38536#M5516</guid>
      <dc:creator>Henrik</dc:creator>
      <dc:date>2023-07-27T06:21:24Z</dc:date>
    </item>
  </channel>
</rss>

