<?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: Can't able to run following queries in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26554#M18587</link>
    <description>&lt;P&gt;View part also worked for me but i want to control the grant part and don't wanna create view&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 14:09:08 GMT</pubDate>
    <dc:creator>deficiant_codge</dc:creator>
    <dc:date>2022-10-19T14:09:08Z</dc:date>
    <item>
      <title>Can't able to run following queries</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26552#M18585</link>
      <description>&lt;P&gt;I cannot able to run following queries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALTER TABLE iot_events ADD ATTRIBUTE pii ON email&lt;/P&gt;&lt;P&gt;ALTER TABLE users ADD ATTRIBUTE pii ON phone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GRANT SELECT ON DATABASE iot_data&lt;/P&gt;&lt;P&gt;  HAVING ATTRIBUTE NOT IN (pii)&lt;/P&gt;&lt;P&gt;  TO product_managers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GRANT SELECT ON iot_events TO engineers&lt;/P&gt;&lt;P&gt;GRANT SELECT(date, country) ON iot_events TO marketing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything i am missing?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 13:38:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26552#M18585</guid>
      <dc:creator>deficiant_codge</dc:creator>
      <dc:date>2022-10-19T13:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't able to run following queries</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26553#M18586</link>
      <description>&lt;P&gt;@Rahul Mishra​&amp;nbsp;I have tried above and did not work for me, but you can create view and try below queries to mask your columns or row &lt;A href="https://docs.databricks.com/data-governance/unity-catalog/create-views.html#dynamic-view" alt="https://docs.databricks.com/data-governance/unity-catalog/create-views.html#dynamic-view" target="_blank"&gt;Create views | Databricks on AWS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 13:53:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26553#M18586</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2022-10-19T13:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can't able to run following queries</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26554#M18587</link>
      <description>&lt;P&gt;View part also worked for me but i want to control the grant part and don't wanna create view&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 14:09:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26554#M18587</guid>
      <dc:creator>deficiant_codge</dc:creator>
      <dc:date>2022-10-19T14:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't able to run following queries</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26555#M18588</link>
      <description>&lt;P&gt;Thing is create view is not a unique feature of unity catalog but this grant part is actually is so i wanna implement that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 14:10:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26555#M18588</guid>
      <dc:creator>deficiant_codge</dc:creator>
      <dc:date>2022-10-19T14:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't able to run following queries</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26556#M18589</link>
      <description>&lt;P&gt;@Kaniz Fatma​&amp;nbsp;can anyone from data Bircks help on why attribute-based access control function is not working in unity catalog @Rahul Mishra​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below commands &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALTER TABLE iot_events ADD ATTRIBUTE pii ON email&lt;/P&gt;&lt;P&gt;ALTER TABLE users ADD ATTRIBUTE pii ON phone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GRANT SELECT ON DATABASE iot_data&lt;/P&gt;&lt;P&gt;  HAVING ATTRIBUTE NOT IN (pii)&lt;/P&gt;&lt;P&gt;  TO product_managers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 14:20:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26556#M18589</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2022-10-19T14:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't able to run following queries</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26558#M18591</link>
      <description>&lt;P&gt;@Kaniz Fatma​&amp;nbsp; even the support page is not working it's redirecting me again and again to the same page &lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 10:47:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26558#M18591</guid>
      <dc:creator>deficiant_codge</dc:creator>
      <dc:date>2022-10-20T10:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't able to run following queries</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26560#M18593</link>
      <description>&lt;P&gt;Hi @Kaniz Fatma​, I am getting below error while creating ATTRIBUTE-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%sql&lt;/P&gt;&lt;P&gt;CREATE ATTRIBUTE pii;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ParseException:&amp;nbsp;&lt;/P&gt;&lt;P&gt;[PARSE_SYNTAX_ERROR] Syntax error at or near 'ATTRIBUTE'(line 1, pos 7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;== SQL ==&lt;/P&gt;&lt;P&gt;CREATE ATTRIBUTE pii&lt;/P&gt;&lt;P&gt;-------^^^&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 18:52:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26560#M18593</guid>
      <dc:creator>Sumit_Kumar</dc:creator>
      <dc:date>2023-05-11T18:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can't able to run following queries</title>
      <link>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26562#M18595</link>
      <description>&lt;P&gt;Hi @Kaniz Fatma​&amp;nbsp;, Thank you for your response.&lt;/P&gt;&lt;P&gt;Are you saying that "attribute" is nothing but a column name in a table?&lt;/P&gt;&lt;P&gt;I was under impression that attribute is like a tag which we should create before using it against a table's column(s). Sharing my reference below -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.cellenza.com/en/data/row-and-column-level-security-with-databricks/" target="test_blank"&gt;https://blog.cellenza.com/en/data/row-and-column-level-security-with-databricks/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.databricks.com/blog/2021/05/26/introducing-databricks-unity-catalog-fine-grained-governance-for-data-and-ai-on-the-lakehouse.html" alt="https://www.databricks.com/blog/2021/05/26/introducing-databricks-unity-catalog-fine-grained-governance-for-data-and-ai-on-the-lakehouse.html" target="_blank"&gt;https://www.databricks.com/blog/2021/05/26/introducing-databricks-unity-catalog-fine-grained-governance-for-data-and-ai-on-the-lakehouse.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In either way, I am confused. I have tried to execute below command as per above databricks documentation, hoping it will create attribute, but its failing. Can you pls give an example how can we create a PII tag/attribute on a set of columns in databricks table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[In below c_phone is a column containing sensitive data in customers table]&lt;/P&gt;&lt;P&gt;SQL&amp;gt; ALTER TABLE customers ADD ATTRIBUTE pii ON c_phone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ParseException: &lt;/P&gt;&lt;P&gt;[PARSE_SYNTAX_ERROR] Syntax error at or near 'ATTRIBUTE'(line 1, pos 48)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;== SQL ==&lt;/P&gt;&lt;P&gt;ALTER TABLE iotsamples.tpch.customer_events ADD ATTRIBUTE pii ON c_phone&lt;/P&gt;&lt;P&gt;------------------------------------------------^^^&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 14:28:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-t-able-to-run-following-queries/m-p/26562#M18595</guid>
      <dc:creator>Sumit_Kumar</dc:creator>
      <dc:date>2023-05-12T14:28:58Z</dc:date>
    </item>
  </channel>
</rss>

