<?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: Row filtering and Column masking not working even when requirements the are met in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/row-filtering-and-column-masking-not-working-even-when/m-p/117736#M45559</link>
    <description>&lt;P&gt;Here are some things to consider/try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="paragraph"&gt;The UnityCatalogServiceException error you are encountering, &lt;CODE&gt;ABORTED.UC_DBR_TRUST_VERSION_TOO_OLD&lt;/CODE&gt;, generally indicates that the Databricks Runtime (DBR) version you are using no longer supports the operation, such as setting row filters or column masks. While Databricks Runtime 15.4 LTS and higher theoretically supports these features, there are some known limitations and additional requirements you should be aware of:&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;### Causes and Insights: 1. &lt;STRONG&gt;Cluster Type and Compute Mode&lt;/STRONG&gt;: - Certain operations like &lt;CODE&gt;ALTER TABLE ... SET MASK&lt;/CODE&gt; or &lt;CODE&gt;ALTER TABLE ... SET ROW FILTER&lt;/CODE&gt; are only supported on specific compute clusters. Dedicated clusters (formerly single-user) might not support these operations unless serverless compute is enabled. These operations may work on Standard compute mode (shared clusters) or Serverless SQL Warehouses.&lt;/DIV&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Serverless Compute Requirement&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Even though DBR 15.4 LTS supports fine-grained access control in theory, the actual enforcement of row filters or column masks might require serverless compute to handle backend filtering and masking at runtime. Without enabling serverless compute in your workspace, attempting to set row filters or column masks on dedicated compute will result in errors.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Runtime Version&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;If you restarted your cluster but are still encountering the issue, double-check that the cluster uses an officially-supported DBR version for your use case (15.4+). Sometimes, errors persist if there are inconsistencies in the runtime setup or cluster properties.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Expected Behavior and Limitations&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;While SELECT queries on tables with existing row filters or column masks may work on dedicated compute (as they could rely on functionalities like Filtering Fleet for reads), DDL operations like &lt;CODE&gt;ALTER TABLE&lt;/CODE&gt; are another matter. Filtering Fleet currently supports only read operations (queries or append operations), and DDL commands are not yet fully supported for tables with row filters or column masks on certain cluster types.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;### Steps to Resolve: 1. &lt;STRONG&gt;Cluster Restart Verification&lt;/STRONG&gt;: - Recreate the cluster on DBR 15.4+ and ensure it is operating in Standard mode or on a Serverless SQL Warehouse. If you are using a dedicated cluster, verify that the workspace is configured for serverless compute.&lt;/DIV&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Serverless Compute Configuration&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Confirm that your workspace is enabled for serverless compute. You can do so by checking your workspace's administrative settings or consulting with your Databricks workspace admin.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Switch to Compatible Cluster Types&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;If serverless compute is not enabled, try using either Standard compute or shared clusters to execute operations involving row filters or column masks.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Documentation Reference&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Review Databricks documentation on row filtering and column masking for Unity Catalog for further clarity on requirements and limitations: &lt;A href="https://docs.databricks.com/tables/row-and-column-filters.html" target="_blank"&gt;Databricks Documentation&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;By ensuring the compute and cluster configuration meets these requirements, you should be able to overcome this error. If problems persist, it may be necessary to escalate this issue through your Databricks support channel, including specifics like the workspace ID, cluster configurations, and exact commands executed triggering the error.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Hope this help, Big Roux.&lt;/DIV&gt;</description>
    <pubDate>Mon, 05 May 2025 15:47:37 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2025-05-05T15:47:37Z</dc:date>
    <item>
      <title>Row filtering and Column masking not working even when requirements the are met</title>
      <link>https://community.databricks.com/t5/data-engineering/row-filtering-and-column-masking-not-working-even-when/m-p/117697#M45549</link>
      <description>&lt;P&gt;I have been trying to use the&amp;nbsp;Row filtering and Column masking feature to redacted columns and and filter rows based on the group a user is in.&lt;/P&gt;&lt;P&gt;I have all the necessary permissions and I've used cluster's with version 15.4 and higher.&lt;/P&gt;&lt;P&gt;When I run the following statements&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ALTER TABLE testtable_new ALTER COLUMN payload SET MASK payload_mask;

ALTER TABLE testtable_new SET ROW FILTER row_filter ON (payload);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I get the this error&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;UnityCatalogServiceException: [RequestId=48187b09-7063-42e2-9b12-643717b0eb91 ErrorClass=ABORTED.UC_DBR_TRUST_VERSION_TOO_OLD] The Databricks Runtime being used no longer supports this operation. Please use the latest version (you may just need to restart your cluster).&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 05 May 2025 12:18:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/row-filtering-and-column-masking-not-working-even-when/m-p/117697#M45549</guid>
      <dc:creator>muano_makhokha</dc:creator>
      <dc:date>2025-05-05T12:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Row filtering and Column masking not working even when requirements the are met</title>
      <link>https://community.databricks.com/t5/data-engineering/row-filtering-and-column-masking-not-working-even-when/m-p/117736#M45559</link>
      <description>&lt;P&gt;Here are some things to consider/try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="paragraph"&gt;The UnityCatalogServiceException error you are encountering, &lt;CODE&gt;ABORTED.UC_DBR_TRUST_VERSION_TOO_OLD&lt;/CODE&gt;, generally indicates that the Databricks Runtime (DBR) version you are using no longer supports the operation, such as setting row filters or column masks. While Databricks Runtime 15.4 LTS and higher theoretically supports these features, there are some known limitations and additional requirements you should be aware of:&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;### Causes and Insights: 1. &lt;STRONG&gt;Cluster Type and Compute Mode&lt;/STRONG&gt;: - Certain operations like &lt;CODE&gt;ALTER TABLE ... SET MASK&lt;/CODE&gt; or &lt;CODE&gt;ALTER TABLE ... SET ROW FILTER&lt;/CODE&gt; are only supported on specific compute clusters. Dedicated clusters (formerly single-user) might not support these operations unless serverless compute is enabled. These operations may work on Standard compute mode (shared clusters) or Serverless SQL Warehouses.&lt;/DIV&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Serverless Compute Requirement&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Even though DBR 15.4 LTS supports fine-grained access control in theory, the actual enforcement of row filters or column masks might require serverless compute to handle backend filtering and masking at runtime. Without enabling serverless compute in your workspace, attempting to set row filters or column masks on dedicated compute will result in errors.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Runtime Version&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;If you restarted your cluster but are still encountering the issue, double-check that the cluster uses an officially-supported DBR version for your use case (15.4+). Sometimes, errors persist if there are inconsistencies in the runtime setup or cluster properties.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Expected Behavior and Limitations&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;While SELECT queries on tables with existing row filters or column masks may work on dedicated compute (as they could rely on functionalities like Filtering Fleet for reads), DDL operations like &lt;CODE&gt;ALTER TABLE&lt;/CODE&gt; are another matter. Filtering Fleet currently supports only read operations (queries or append operations), and DDL commands are not yet fully supported for tables with row filters or column masks on certain cluster types.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;### Steps to Resolve: 1. &lt;STRONG&gt;Cluster Restart Verification&lt;/STRONG&gt;: - Recreate the cluster on DBR 15.4+ and ensure it is operating in Standard mode or on a Serverless SQL Warehouse. If you are using a dedicated cluster, verify that the workspace is configured for serverless compute.&lt;/DIV&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Serverless Compute Configuration&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Confirm that your workspace is enabled for serverless compute. You can do so by checking your workspace's administrative settings or consulting with your Databricks workspace admin.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Switch to Compatible Cluster Types&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;If serverless compute is not enabled, try using either Standard compute or shared clusters to execute operations involving row filters or column masks.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="paragraph"&gt;&lt;STRONG&gt;Documentation Reference&lt;/STRONG&gt;:
&lt;UL&gt;
&lt;LI&gt;Review Databricks documentation on row filtering and column masking for Unity Catalog for further clarity on requirements and limitations: &lt;A href="https://docs.databricks.com/tables/row-and-column-filters.html" target="_blank"&gt;Databricks Documentation&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV class="paragraph"&gt;By ensuring the compute and cluster configuration meets these requirements, you should be able to overcome this error. If problems persist, it may be necessary to escalate this issue through your Databricks support channel, including specifics like the workspace ID, cluster configurations, and exact commands executed triggering the error.&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="paragraph"&gt;Hope this help, Big Roux.&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 May 2025 15:47:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/row-filtering-and-column-masking-not-working-even-when/m-p/117736#M45559</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-05-05T15:47:37Z</dc:date>
    </item>
  </channel>
</rss>

