<?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: AnalysisException: [ROW_LEVEL_SECURITY_FEATURE_NOT_SUPPORTED.CHECK_CONSTRAINT] in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/analysisexception-row-level-security-feature-not-supported-check/m-p/63395#M32228</link>
    <description>&lt;P&gt;&amp;nbsp;To be fair, row filters and the check constraints feature are in Public Preview, so I apologize for the slightly harsh words above!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 14:25:17 GMT</pubDate>
    <dc:creator>Martinitus</dc:creator>
    <dc:date>2024-03-12T14:25:17Z</dc:date>
    <item>
      <title>AnalysisException: [ROW_LEVEL_SECURITY_FEATURE_NOT_SUPPORTED.CHECK_CONSTRAINT]</title>
      <link>https://community.databricks.com/t5/data-engineering/analysisexception-row-level-security-feature-not-supported-check/m-p/63392#M32226</link>
      <description>&lt;P&gt;I just tried to setup a row filter via the following two sql snippets:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;create&lt;/SPAN&gt; &lt;SPAN&gt;function&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt; &lt;SPAN&gt;not&lt;/SPAN&gt; &lt;SPAN&gt;exists&lt;/SPAN&gt; &lt;SPAN&gt;foo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;my_test&lt;/SPAN&gt;&lt;SPAN&gt;.row_filter (batch_id &lt;/SPAN&gt;&lt;SPAN&gt;bigint&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; TRUE;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN&gt;alter&lt;/SPAN&gt; &lt;SPAN&gt;table&lt;/SPAN&gt; &lt;SPAN&gt;foo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;my_test&lt;/SPAN&gt;&lt;SPAN&gt;.some_table&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt; &lt;SPAN&gt;row&lt;/SPAN&gt; &lt;SPAN&gt;filter&lt;/SPAN&gt; &lt;SPAN&gt;foo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;my_test&lt;/SPAN&gt;&lt;SPAN&gt;.row_filter &lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt;&lt;SPAN&gt; (batch_id);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This resulted in&amp;nbsp;ROW_LEVEL_SECURITY_FEATURE_NOT_SUPPORTED.CHECK_CONSTRAINT. I assume this is because the table has some constraints (e.g.&amp;nbsp;&lt;SPAN&gt;delta.constraints.valid_year&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;year &amp;gt; 2020).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I checked the documentation of row filters &lt;A href="https://docs.databricks.com/en/data-governance/unity-catalog/row-and-column-filters.html#limitations" target="_self"&gt;here&lt;/A&gt; - especially the limitations. It doesn't mention anything about check constraints.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Is this not supported, or am I doing something wrong here?&lt;BR /&gt;&lt;BR /&gt;If this is not supported, then the limitations section should be updated...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BTW: This seems to be a recurring issue I have with databricks (and azure tbf), you start using a feature A just to find out a couple of weeks later, that using feature A prevents you from using feature B.... Not a very nice user experience &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Mar 2024 14:07:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/analysisexception-row-level-security-feature-not-supported-check/m-p/63392#M32226</guid>
      <dc:creator>Martinitus</dc:creator>
      <dc:date>2024-03-12T14:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: AnalysisException: [ROW_LEVEL_SECURITY_FEATURE_NOT_SUPPORTED.CHECK_CONSTRAINT]</title>
      <link>https://community.databricks.com/t5/data-engineering/analysisexception-row-level-security-feature-not-supported-check/m-p/63395#M32228</link>
      <description>&lt;P&gt;&amp;nbsp;To be fair, row filters and the check constraints feature are in Public Preview, so I apologize for the slightly harsh words above!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 14:25:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/analysisexception-row-level-security-feature-not-supported-check/m-p/63395#M32228</guid>
      <dc:creator>Martinitus</dc:creator>
      <dc:date>2024-03-12T14:25:17Z</dc:date>
    </item>
  </channel>
</rss>

