<?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 Query table access control metadata from Databricks SQL in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/query-table-access-control-metadata-from-databricks-sql/m-p/16712#M10842</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm trying to create a dashboard in Databricks SQL, parameterized by table name. We have a metadata table which contains the names of all the eligible tables, and we use it to populate a drop-down box for the dashboard. This is a simplified version of the query:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT CONCAT(m.database_name, '.', m.table_name)
FROM metadata m
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, the drop-down box should only contain the tables that the current user has actually permission to read. So the question is: &lt;B&gt;is it possible to modify the previous query to take permissions into account?&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;In other words, this is what I'm looking for (pseudo-code):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT CONCAT(m.database_name, '.', m.table_name)
FROM metadata m
INNER JOIN permission_metadata p ON m.database_name = p.database_name AND m.table_name = p.table_name&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where &lt;B&gt;permission_metadata&lt;/B&gt; only contains the tables that the current user can read.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 13:13:44 GMT</pubDate>
    <dc:creator>GabrieleMuciacc</dc:creator>
    <dc:date>2021-08-09T13:13:44Z</dc:date>
    <item>
      <title>Query table access control metadata from Databricks SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/query-table-access-control-metadata-from-databricks-sql/m-p/16712#M10842</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm trying to create a dashboard in Databricks SQL, parameterized by table name. We have a metadata table which contains the names of all the eligible tables, and we use it to populate a drop-down box for the dashboard. This is a simplified version of the query:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT CONCAT(m.database_name, '.', m.table_name)
FROM metadata m
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, the drop-down box should only contain the tables that the current user has actually permission to read. So the question is: &lt;B&gt;is it possible to modify the previous query to take permissions into account?&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;In other words, this is what I'm looking for (pseudo-code):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT CONCAT(m.database_name, '.', m.table_name)
FROM metadata m
INNER JOIN permission_metadata p ON m.database_name = p.database_name AND m.table_name = p.table_name&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where &lt;B&gt;permission_metadata&lt;/B&gt; only contains the tables that the current user can read.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 13:13:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/query-table-access-control-metadata-from-databricks-sql/m-p/16712#M10842</guid>
      <dc:creator>GabrieleMuciacc</dc:creator>
      <dc:date>2021-08-09T13:13:44Z</dc:date>
    </item>
  </channel>
</rss>

