<?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 Filter sensitive data on nested column in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/49038#M1410</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;We are working on the column masking topic recently, using the column filter feature of Unity Catalog.&lt;/P&gt;&lt;P&gt;We recently face the problem of masking a nested column (a sub-column within a STRUCT type column).&lt;/P&gt;&lt;P&gt;We just wonder if this is even possible with Unity Catalog to mask only this sub-column, or we have no other option than to mask the whole STRUCT column.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Tien Dat PHAN&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 16:28:36 GMT</pubDate>
    <dc:creator>TienDat</dc:creator>
    <dc:date>2023-10-12T16:28:36Z</dc:date>
    <item>
      <title>Filter sensitive data on nested column</title>
      <link>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/49038#M1410</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;We are working on the column masking topic recently, using the column filter feature of Unity Catalog.&lt;/P&gt;&lt;P&gt;We recently face the problem of masking a nested column (a sub-column within a STRUCT type column).&lt;/P&gt;&lt;P&gt;We just wonder if this is even possible with Unity Catalog to mask only this sub-column, or we have no other option than to mask the whole STRUCT column.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Tien Dat PHAN&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 16:28:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/49038#M1410</guid>
      <dc:creator>TienDat</dc:creator>
      <dc:date>2023-10-12T16:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter sensitive data on nested column</title>
      <link>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/49064#M1411</link>
      <description>&lt;P&gt;To update on this topic, not only the STRUCT type but also the ARRAY type is having issue with applying the MASK function. My guess is that since both STRUCT and ARRAY types are not standard types of SQL, the ALTER COLUMN to add MASK to those columns always have issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It always results in the following exception, even we try with just simple ARRAY&amp;lt;INT&amp;gt; type:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;STRONG&gt;If you did not qualify the name with a catalog, verify the current_schema() output, or qualify the name with the correct catalog. To tolerate the error on drop use DROP SCHEMA IF EXISTS.&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could you please take a look and see if we have any solution at all for masking those column types?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Tien Dat PHAN&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 21:05:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/49064#M1411</guid>
      <dc:creator>TienDat</dc:creator>
      <dc:date>2023-10-12T21:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filter sensitive data on nested column</title>
      <link>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/55772#M1505</link>
      <description>&lt;P&gt;Same as my concern. I try to mask with Decimal datatype but It doesn't work as well. The example of DBX for column mask maybe work well with simple datatype like string. Somehow it doesn't meet our requirements for data governance.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 07:15:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/55772#M1505</guid>
      <dc:creator>DucNguyen</dc:creator>
      <dc:date>2023-12-27T07:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filter sensitive data on nested column</title>
      <link>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/55801#M1506</link>
      <description>&lt;P&gt;Maybe old fashioned Dynamic view will do the work?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 13:27:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/55801#M1506</guid>
      <dc:creator>Wojciech_BUK</dc:creator>
      <dc:date>2023-12-27T13:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter sensitive data on nested column</title>
      <link>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/55860#M1507</link>
      <description>&lt;P&gt;For your Decimal datatype masking, you just need to make sure that your SQL function declaration contains correct datatype.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like: CREATE FUNCTION catalogName.default.my_function(input decimal(x, y)) RETURNS DECIMAL(x, y) RETURN input;&lt;/P&gt;&lt;P&gt;It should work.&lt;/P&gt;&lt;P&gt;On the other hand, my concern is for masking or filtering on sub-field of nested column types like STRUCT or ARRAY.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 21:02:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/55860#M1507</guid>
      <dc:creator>TienDat</dc:creator>
      <dc:date>2023-12-27T21:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter sensitive data on nested column</title>
      <link>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/55861#M1508</link>
      <description>&lt;P&gt;Thanks for your suggestion.&lt;/P&gt;&lt;P&gt;The core concern of this thread remains the same, does not matter if we use VIEW or MASKING functions. That is to which extend Databricks SQL support complex type manipulation? Can we make a function/a VIEW definition that utilizes/alters a sub-field of a complex-typed column for whatever purpose we want?&lt;/P&gt;&lt;P&gt;Does it even support it at all? If it is not supported, is there any plan to support it in future? Or what would be the alternatives?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 21:08:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/55861#M1508</guid>
      <dc:creator>TienDat</dc:creator>
      <dc:date>2023-12-27T21:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter sensitive data on nested column</title>
      <link>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/126789#M2553</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/90611"&gt;@TienDat&lt;/a&gt;&amp;nbsp;Did you find solution on this?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 11:51:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/filter-sensitive-data-on-nested-column/m-p/126789#M2553</guid>
      <dc:creator>yit</dc:creator>
      <dc:date>2025-07-29T11:51:39Z</dc:date>
    </item>
  </channel>
</rss>

