<?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 Enable lineage data system tables in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/enable-lineage-data-system-tables/m-p/39916#M1148</link>
    <description>&lt;P&gt;Execute the below Python code in your &lt;STRONG&gt;databricks&lt;/STRONG&gt; workspace to enable lineage system tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests
ctx = dbutils.notebook.entry_point.getDbutils().notebook().getContext()
api_url = ctx.tags().get("browserHostName").get()
api_token = ctx.apiToken().get()
headers = {'Authorization': f'Bearer {api_token}'}
account_id = ctx.tags().get("accountId").get()
# get metastore id
url = f'https://{api_url}/api/2.1/unity-catalog/metastores'
metastore_id = requests.get(url, headers=headers).json()['metastores'][0]['metastore_id']
# enable lineage tables
url = f'https://{api_url}/api/2.0/unity-catalog/metastores/{metastore_id}/systemschemas/access'
requests.put(url, headers=headers)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ezgif-1-9a34272eba.gif" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3129i3151AC6545BA70E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="ezgif-1-9a34272eba.gif" alt="ezgif-1-9a34272eba.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 10:27:53 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2023-08-15T10:27:53Z</dc:date>
    <item>
      <title>Enable lineage data system tables</title>
      <link>https://community.databricks.com/t5/data-governance/enable-lineage-data-system-tables/m-p/39916#M1148</link>
      <description>&lt;P&gt;Execute the below Python code in your &lt;STRONG&gt;databricks&lt;/STRONG&gt; workspace to enable lineage system tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests
ctx = dbutils.notebook.entry_point.getDbutils().notebook().getContext()
api_url = ctx.tags().get("browserHostName").get()
api_token = ctx.apiToken().get()
headers = {'Authorization': f'Bearer {api_token}'}
account_id = ctx.tags().get("accountId").get()
# get metastore id
url = f'https://{api_url}/api/2.1/unity-catalog/metastores'
metastore_id = requests.get(url, headers=headers).json()['metastores'][0]['metastore_id']
# enable lineage tables
url = f'https://{api_url}/api/2.0/unity-catalog/metastores/{metastore_id}/systemschemas/access'
requests.put(url, headers=headers)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ezgif-1-9a34272eba.gif" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3129i3151AC6545BA70E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="ezgif-1-9a34272eba.gif" alt="ezgif-1-9a34272eba.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 10:27:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/enable-lineage-data-system-tables/m-p/39916#M1148</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2023-08-15T10:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Enable lineage data system tables</title>
      <link>https://community.databricks.com/t5/data-governance/enable-lineage-data-system-tables/m-p/56953#M1538</link>
      <description>&lt;P&gt;Great, I wondered why I didn't see them &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 15:39:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/enable-lineage-data-system-tables/m-p/56953#M1538</guid>
      <dc:creator>iplantevin</dc:creator>
      <dc:date>2024-01-11T15:39:11Z</dc:date>
    </item>
  </channel>
</rss>

