<?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: alter DLT Materialized View alter column set MASK in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/alter-dlt-materialized-view-alter-column-set-mask/m-p/89004#M37669</link>
    <description>&lt;P&gt;Thank you. I will submit the idea.&lt;/P&gt;</description>
    <pubDate>Sat, 07 Sep 2024 13:21:46 GMT</pubDate>
    <dc:creator>kranthi2</dc:creator>
    <dc:date>2024-09-07T13:21:46Z</dc:date>
    <item>
      <title>alter DLT Materialized View alter column set MASK</title>
      <link>https://community.databricks.com/t5/data-engineering/alter-dlt-materialized-view-alter-column-set-mask/m-p/88921#M37662</link>
      <description>&lt;P&gt;I am trying to mask a column on a DLT materialized view - this is created using DLT syntax. I am not able set the column masking after creation. Appreciate any workaround.&lt;/P&gt;&lt;P&gt;alter DLT Materialized View alter column set MASK&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 20:01:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/alter-dlt-materialized-view-alter-column-set-mask/m-p/88921#M37662</guid>
      <dc:creator>kranthi2</dc:creator>
      <dc:date>2024-09-06T20:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: alter DLT Materialized View alter column set MASK</title>
      <link>https://community.databricks.com/t5/data-engineering/alter-dlt-materialized-view-alter-column-set-mask/m-p/88926#M37665</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/11193"&gt;@kranthi2&lt;/a&gt;&amp;nbsp;, I hope you're doing well.&lt;/P&gt;
&lt;P&gt;It seems that this command won't work for MVs, as it expected table. When trying to run the following command, for example:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ALTER&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt; &lt;SPAN&gt;`catalog`&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;`schema`&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;`MV`&lt;/SPAN&gt; &lt;SPAN&gt;ALTER&lt;/SPAN&gt; &lt;SPAN&gt;COLUMN&lt;/SPAN&gt; &lt;SPAN&gt;column_&lt;/SPAN&gt; &lt;SPAN&gt;SET&lt;/SPAN&gt; &lt;SPAN&gt;MASK&lt;/SPAN&gt;&lt;SPAN&gt; mask_func;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;We get the following error:&lt;BR /&gt;[&lt;A class="du-bois-dark-typography webapp-css-1dm394i" href="https://docs.databricks.com/error-messages/error-classes.html#expect_table_not_view.no_alternative" target="_blank" rel="noopener noreferrer"&gt;EXPECT_TABLE_NOT_VIEW.NO_ALTERNATIVE&lt;/A&gt;] 'ALTER TABLE ... ALTER COLUMN' expects a table but `catalog`.`schema`.`MV` is a view. SQLSTATE: 42809&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Also, if you go to the table through Catalog, and follow the docs steps:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lucasrocha_0-1725661412591.png" style="width: 523px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10998iF3E04D9C591E2616/image-dimensions/523x243?v=v2" width="523" height="243" role="button" title="lucasrocha_0-1725661412591.png" alt="lucasrocha_0-1725661412591.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;Doc.:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/tables/row-and-column-filters.html#apply-a-column-mask" target="_blank"&gt;https://docs.databricks.com/en/tables/row-and-column-filters.html#apply-a-column-mask&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In a MV, you will face the following message:&lt;BR /&gt;&lt;EM&gt;To add or remove column mask for Materialized Views, use the CREATE OR REPLACE statement&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Which indicates that, for now, this operation is not possible for MVs.&lt;/P&gt;
&lt;P&gt;If you believe this feature of adding column mask to MVs through ALTER TABLE/VIEW&amp;nbsp;&lt;SPAN&gt;would be beneficial, you could submit an idea in Databricks'&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/en/resources/ideas.html#create-an-idea-in-the-ideas-portal" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;SPAN class="s1"&gt;Ideas Portal&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Lucas Rocha&lt;BR /&gt;Technical Solutions Engineer&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Sep 2024 22:35:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/alter-dlt-materialized-view-alter-column-set-mask/m-p/88926#M37665</guid>
      <dc:creator>lucasrocha</dc:creator>
      <dc:date>2024-09-06T22:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: alter DLT Materialized View alter column set MASK</title>
      <link>https://community.databricks.com/t5/data-engineering/alter-dlt-materialized-view-alter-column-set-mask/m-p/89004#M37669</link>
      <description>&lt;P&gt;Thank you. I will submit the idea.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2024 13:21:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/alter-dlt-materialized-view-alter-column-set-mask/m-p/89004#M37669</guid>
      <dc:creator>kranthi2</dc:creator>
      <dc:date>2024-09-07T13:21:46Z</dc:date>
    </item>
  </channel>
</rss>

