<?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: How to incrementally backup system.information_schema.table_privileges (no streaming, no unique in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145042#M52447</link>
    <description>&lt;P&gt;Since we need the previous permissions of a table that was dropped, I thought taking a backup of the&amp;nbsp;&lt;STRONG&gt;system.information_schema.table_privileges&lt;/STRONG&gt; table would be helpful. any idea if there is an alternative way to retrieve this information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jan 2026 17:24:34 GMT</pubDate>
    <dc:creator>Danish11052000</dc:creator>
    <dc:date>2026-01-23T17:24:34Z</dc:date>
    <item>
      <title>How to incrementally backup system.information_schema.table_privileges (no streaming, no unique keys</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145017#M52439</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;I'm trying to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;incrementally backup&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;system.information_schema.table_privileges&lt;SPAN&gt;&amp;nbsp;but facing challenges:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;No streaming support&lt;/STRONG&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Is streaming supported: False&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;No unique columns for MERGE&lt;/STRONG&gt;: All columns contain common values, no natural key combination&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;STRONG&gt;No timestamp columns availability&lt;/STRONG&gt;: Can't track changes incrementally&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;&lt;STRONG&gt;Table schema:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;GRANTOR (STRING, NOT NULL) - Principal that granted privilege&lt;BR /&gt;GRANTEE (STRING, NOT NULL) - Principal receiving privilege&lt;BR /&gt;TABLE_CATALOG (STRING, NOT NULL) - Catalog name&lt;BR /&gt;TABLE_SCHEMA (STRING, NOT NULL) - Schema name&lt;BR /&gt;TABLE_NAME (STRING, NOT NULL) - Table name&lt;BR /&gt;PRIVILEGE_TYPE (STRING, NOT NULL) - Privilege type&lt;BR /&gt;IS_GRANTABLE (STRING, NOT NULL) - Always 'NO'&lt;BR /&gt;INHERITED_FROM (STRING, NOT NULL) - Ancestor relation&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;&lt;STRONG&gt;Problems:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P class=""&gt;Spark streaming fails:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[UNSUPPORTED_FEATURE.TABLE_OPERATION]&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Batch MERGE fails: No reliable unique key columns&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;No&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;last_altered/created_time&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for incremental logic&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Any solution would be really helpful!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 15:05:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145017#M52439</guid>
      <dc:creator>Danish11052000</dc:creator>
      <dc:date>2026-01-23T15:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to incrementally backup system.information_schema.table_privileges (no streaming, no unique</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145030#M52442</link>
      <description>&lt;P&gt;information_schema is not a Delta Table, which is why you can't stream from it. They are basically views on top of the information coming straight from the control plane database.&lt;/P&gt;
&lt;P&gt;Also your query is actually going to be quite slow/expensive (you probably have noted that a &lt;STRONG&gt;select *&lt;/STRONG&gt; type query on it is slow since it is a union of all the views from each individual catalog's information_schema).&lt;/P&gt;
&lt;P&gt;What's the goal here with trying to maintain a "daily" snapshot?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 15:59:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145030#M52442</guid>
      <dc:creator>MoJaMa</dc:creator>
      <dc:date>2026-01-23T15:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to incrementally backup system.information_schema.table_privileges (no streaming, no unique</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145042#M52447</link>
      <description>&lt;P&gt;Since we need the previous permissions of a table that was dropped, I thought taking a backup of the&amp;nbsp;&lt;STRONG&gt;system.information_schema.table_privileges&lt;/STRONG&gt; table would be helpful. any idea if there is an alternative way to retrieve this information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 17:24:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145042#M52447</guid>
      <dc:creator>Danish11052000</dc:creator>
      <dc:date>2026-01-23T17:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to incrementally backup system.information_schema.table_privileges (no streaming, no unique</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145062#M52450</link>
      <description>&lt;P&gt;Got it. You could try going it another way, with the audit tables. You can tweak this query to add whatever actions you want to monitor, extract the securable name, changes, securable_type etc and run it every day (1 day interval) / compare over time. You could even build alerts off it (let's say you really care about a specific catalog/schema/table) etc.&lt;/P&gt;
&lt;P&gt;Query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;select request_params, *
from `system`.`access`.`audit`
WHERE 
service_name =  'unityCatalog'
and action_name = 'updatePermissions'
and event_time &amp;gt;= current_timestamp() - interval 30 day
-- and workspace_id = 'your workspace id' -- optional
;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 20:59:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145062#M52450</guid>
      <dc:creator>MoJaMa</dc:creator>
      <dc:date>2026-01-23T20:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to incrementally backup system.information_schema.table_privileges (no streaming, no unique</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145067#M52451</link>
      <description>&lt;P&gt;Nice catch with audit table, and actually, that one can be read as CDF stream, and we can pass action_name to filter&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 22:24:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145067#M52451</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2026-01-23T22:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to incrementally backup system.information_schema.table_privileges (no streaming, no unique</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145071#M52453</link>
      <description>&lt;P&gt;Thanks for pointing that out Hubert.&lt;/P&gt;
&lt;P&gt;It's quite confusing to most (all?) users that "information_schema" is the exception inside the system catalog.&lt;/P&gt;
&lt;P&gt;You can stream from all other schemas since they are delta-shares. but information_schema is special &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 22:35:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-incrementally-backup-system-information-schema-table/m-p/145071#M52453</guid>
      <dc:creator>MoJaMa</dc:creator>
      <dc:date>2026-01-23T22:35:15Z</dc:date>
    </item>
  </channel>
</rss>

