<?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: LIKE Operator Fails with COLLATE UNICODE_CI Columns in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/150325#M53361</link>
    <description>&lt;P&gt;Thanks for your quick response and solution on this!!&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2026 05:40:41 GMT</pubDate>
    <dc:creator>Phani1</dc:creator>
    <dc:date>2026-03-09T05:40:41Z</dc:date>
    <item>
      <title>LIKE Operator Fails with COLLATE UNICODE_CI Columns</title>
      <link>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/149786#M53180</link>
      <description>&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Hi All,&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;&lt;FONT size="3"&gt;We are experiencing problem while we are querying the table which has collate unicode_ci attribute enabled, Kindly find the below findings and let me know if any alternative approach to fix this issue?&lt;/FONT&gt;&lt;/P&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Problem Statement&lt;/FONT&gt;&lt;/H3&gt;&lt;DIV class=""&gt;&lt;FONT size="3"&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;LIKE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;operator in a query does not work when&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;COLLATE UNICODE_CI&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is enabled on a table column, even though the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(equals) operator works fine with the same column and value.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Steps to Reproduce&lt;/FONT&gt;&lt;/H3&gt;&lt;H4&gt;&lt;FONT size="3"&gt;1. Table Created with UNICODE_CI Property on Name Column (Case-Insensitive)&lt;/FONT&gt;&lt;/H4&gt;&lt;P&gt;&lt;FONT size="3"&gt;CREATE TABLE test_catalog_ph.bronze.my_table_cs_new2 (&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;id INT,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;name STRING COLLATE UNICODE_CI&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;H4&gt;&lt;FONT size="3"&gt;2. Sample Data Inserted&lt;/FONT&gt;&lt;/H4&gt;&lt;P&gt;&lt;FONT size="3"&gt;INSERT INTO test_catalog_ph.bronze.my_table_cs_new2 VALUES (1, 'TEST');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;INSERT INTO test_catalog_ph.bronze.my_table_cs_new2 VALUES (2, 'test');&lt;/FONT&gt;&lt;/P&gt;&lt;H4&gt;&lt;FONT size="3"&gt;Query with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Operator = &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Works&lt;/FONT&gt;&lt;/H4&gt;&lt;P&gt;&lt;FONT size="3"&gt;SELECT * FROM test_catalog_ph.bronze.my_table_cs_new2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;WHERE name = 'Test';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;-- &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Returns 2 rows: 'TEST' and 'test' (case-insensitive match works)&lt;/FONT&gt;&lt;/P&gt;&lt;H4&gt;&lt;FONT size="3"&gt;Query with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;LIKE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Operator — &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; Fails&lt;/FONT&gt;&lt;/H4&gt;&lt;P&gt;&lt;FONT size="3"&gt;SELECT * FROM test_catalog_ph.bronze.my_table_cs_new2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;WHERE name LIKE 'Test';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;-- &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; Throws error&lt;/FONT&gt;&lt;/P&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Error Message&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;&lt;FONT size="3"&gt;[DATATYPE_MISMATCH.UNEXPECTED_INPUT_TYPE] Cannot resolve "name LIKE Test" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;due to data type mismatch: The first parameter requires the "STRING" type, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;however "name" has the type "STRING COLLATE UNICODE_CI". &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;SQLSTATE: 42K09; line 102, pos 65&lt;/FONT&gt;&lt;/P&gt;&lt;H3&gt;&lt;FONT size="3"&gt;Our Findings&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;The root cause is a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;data type mismatch&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;between the two sides of the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;LIKE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;expression:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;Left side (column)-STRING COLLATE UNICODE_CI&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;Right side (literal)-STRING (UTF8_BINARY)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;H3&gt;&lt;FONT size="3"&gt;The Concern&lt;/FONT&gt;&lt;/H3&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;FONT size="3"&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;LIKE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;operator is one of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;most commonly used&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SQL operators for pattern matching&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;Most&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;end users and BI tools&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(including Power BI, Tableau, etc.) rely heavily on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;LIKE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for filtering&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;works with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;UNICODE_CI&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;columns but&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;LIKE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;does not, this creates an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;inconsistent and confusing experience&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;End users should not be expected to add&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;COLLATE UNICODE_CI&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to every&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;LIKE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;query manually&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Mar 2026 17:24:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/149786#M53180</guid>
      <dc:creator>Phani1</dc:creator>
      <dc:date>2026-03-04T17:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: LIKE Operator Fails with COLLATE UNICODE_CI Columns</title>
      <link>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/149855#M53186</link>
      <description>&lt;P&gt;Greetings &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/36892"&gt;@Phani1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This is an &lt;EM&gt;expected&lt;/EM&gt; behaviour and follows ANSI rules. ANSI SQL requires operands of comparison operators (including LIKE) to have compatible character types and collations.&lt;/P&gt;&lt;P&gt;Since implicit conversion is not applied for `LIKE`, the query fails with a datatype mismatch error.&lt;/P&gt;&lt;P&gt;Below are two alternative approaches that can be used to address this limitation based on my experience.&lt;/P&gt;&lt;P&gt;Option 1 — View Wrapper (Recommended for End Users &amp;amp; BI Tools)&lt;/P&gt;&lt;P&gt;A compatibility view can be created by casting the collated column to a standard `STRING` datatype. End users and BI tools can then query the view without needing to handle collation explicitly.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;CREATE VIEW test_catalog_ph.bronze.my_table_cs_new2_vw AS&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CAST(name AS STRING) AS name&lt;/P&gt;&lt;P&gt;FROM test_catalog_ph.bronze.my_table_cs_new2;&lt;/P&gt;&lt;P&gt;Usage:&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM test_catalog_ph.bronze.my_table_cs_new2_vw&lt;/P&gt;&lt;P&gt;WHERE name LIKE 'Test';&lt;/P&gt;&lt;P&gt;Advantages:&lt;/P&gt;&lt;P&gt;* No changes required in user queries.&lt;/P&gt;&lt;P&gt;* Fully compatible with BI tools such as Power BI or Tableau.&lt;/P&gt;&lt;P&gt;* Hides collation complexity from end users.&lt;/P&gt;&lt;P&gt;* Centralized solution applied once at the view layer.&lt;/P&gt;&lt;P&gt;Option 2 — Helper Scalar Function&lt;/P&gt;&lt;P&gt;A reusable SQL function can be created to encapsulate the casting logic required for pattern matching.&lt;/P&gt;&lt;P&gt;Example Function&lt;/P&gt;&lt;P&gt;CREATE FUNCTION ci_like(col STRING, pattern STRING)&lt;/P&gt;&lt;P&gt;RETURNS BOOLEAN&lt;/P&gt;&lt;P&gt;RETURN CAST(col AS STRING) LIKE pattern;&lt;/P&gt;&lt;P&gt;Usage:&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM test_catalog_ph.bronze.my_table_cs_new2&lt;/P&gt;&lt;P&gt;WHERE ci_like(name, 'Test');&lt;/P&gt;&lt;P&gt;Advantages:&lt;/P&gt;&lt;P&gt;* Standardizes pattern matching logic.&lt;/P&gt;&lt;P&gt;* Avoids repeated casting expressions in queries.&lt;/P&gt;&lt;P&gt;* Provides a cleaner and reusable workaround.&lt;/P&gt;&lt;P&gt;NOTE: Queries must use the helper function instead of the native `LIKE` operator.&lt;/P&gt;&lt;P&gt;Option 3: Alter to String if there is an option.&lt;/P&gt;&lt;P&gt;Alter the column data type to string if your use case does not need it to be collate.&lt;/P&gt;&lt;P&gt;Since automatic implicit conversion is not currently supported for `LIKE` operations on collated columns, the above approaches can be used as a workaround.&lt;/P&gt;&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Saicharan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 23:04:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/149855#M53186</guid>
      <dc:creator>Shetty_1338</dc:creator>
      <dc:date>2026-03-04T23:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: LIKE Operator Fails with COLLATE UNICODE_CI Columns</title>
      <link>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/149862#M53188</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your quick response and for providing the solution. However, the view-based approach is causing the same issue—since it still involves converting the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;UNICODE_CI&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;column to a regular string, we may lose case-insensitive behavior and not get the expected results.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2026 05:22:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/149862#M53188</guid>
      <dc:creator>Phani1</dc:creator>
      <dc:date>2026-03-05T05:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: LIKE Operator Fails with COLLATE UNICODE_CI Columns</title>
      <link>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/150092#M53237</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is a known limitation in Databricks SQL. The LIKE operator only supports a subset of collations, and UNICODE_CI is NOT one of them.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;WHICH COLLATIONS DOES LIKE SUPPORT?&lt;/P&gt;
&lt;P&gt;Per the official LIKE documentation, the supported collations are limited to:&lt;/P&gt;
&lt;P&gt;- UTF8_BINARY&lt;BR /&gt;- UTF8_BINARY_RTRIM&lt;BR /&gt;- UTF8_LCASE&lt;BR /&gt;- UTF8_LCASE_RTRIM&lt;/P&gt;
&lt;P&gt;If you try to use LIKE on a column with any other collation (including UNICODE_CI, UNICODE, or any locale-based collation), it will fail.&lt;/P&gt;
&lt;P&gt;Docs: &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/functions/like.html" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/functions/like.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;WORKAROUNDS&lt;/P&gt;
&lt;P&gt;There are a few approaches depending on your use case:&lt;/P&gt;
&lt;P&gt;1. Use contains(), startswith(), or endswith() instead of LIKE&lt;/P&gt;
&lt;P&gt;The Databricks documentation explicitly recommends these functions as alternatives when working with collations not supported by LIKE. These functions respect the collation of the input string, so they will honor your UNICODE_CI setting:&lt;/P&gt;
&lt;P&gt;-- Instead of: SELECT * FROM my_table WHERE name LIKE '%john%'&lt;BR /&gt;SELECT * FROM my_table WHERE contains(name, 'john')&lt;/P&gt;
&lt;P&gt;-- Instead of: SELECT * FROM my_table WHERE name LIKE 'john%'&lt;BR /&gt;SELECT * FROM my_table WHERE startswith(name, 'john')&lt;/P&gt;
&lt;P&gt;-- Instead of: SELECT * FROM my_table WHERE name LIKE '%john'&lt;BR /&gt;SELECT * FROM my_table WHERE endswith(name, 'john')&lt;/P&gt;
&lt;P&gt;Since your column uses UNICODE_CI, these functions will perform case-insensitive matching automatically -- no need for LOWER() wrapping.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2. Use LOWER() / UPPER() with LIKE on a non-collated column&lt;/P&gt;
&lt;P&gt;If you need the full wildcard pattern-matching power of LIKE (e.g., LIKE 'J_hn%' with single-character wildcards), you can wrap both sides in LOWER():&lt;/P&gt;
&lt;P&gt;SELECT * FROM my_table WHERE LOWER(name) LIKE LOWER('%John%')&lt;/P&gt;
&lt;P&gt;Note: This approach may not give you the same Unicode-aware case folding that UNICODE_CI provides (e.g., certain locale-specific characters). It uses simple lowercase conversion.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;3. Use ILIKE for case-insensitive pattern matching (with caveats)&lt;/P&gt;
&lt;P&gt;The ILIKE operator performs case-insensitive LIKE matching, but it also only works with UTF8_BINARY and UTF8_LCASE collations. So you would need to explicitly cast the column:&lt;/P&gt;
&lt;P&gt;SELECT * FROM my_table WHERE name COLLATE UTF8_BINARY ILIKE '%john%'&lt;/P&gt;
&lt;P&gt;This forces the comparison to use UTF8_BINARY collation for that expression, bypassing the UNICODE_CI collation on the column. The trade-off is you lose UNICODE_CI's more sophisticated Unicode-aware case folding.&lt;/P&gt;
&lt;P&gt;Docs: &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/functions/ilike.html" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/functions/ilike.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;4. Switch the column collation to UTF8_LCASE&lt;/P&gt;
&lt;P&gt;If your primary need is case-insensitive comparison (and you don't specifically need the ICU Unicode-aware ordering that UNICODE_CI provides), consider using UTF8_LCASE instead:&lt;/P&gt;
&lt;P&gt;ALTER TABLE my_table ALTER COLUMN name SET COLLATION UTF8_LCASE;&lt;/P&gt;
&lt;P&gt;UTF8_LCASE is case-insensitive AND fully supported by both LIKE and ILIKE. The difference is that UTF8_LCASE does simple byte-level lowercase conversion while UNICODE_CI uses the ICU library for more linguistically accurate case folding.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SUMMARY&lt;/P&gt;
&lt;P&gt;- contains() / startswith() / endswith(): Supports UNICODE_CI, no wildcards, Unicode-aware&lt;BR /&gt;- LOWER() + LIKE: Bypasses collation, full LIKE patterns, limited Unicode awareness&lt;BR /&gt;- ILIKE with COLLATE UTF8_BINARY: Overrides collation, full LIKE patterns, limited Unicode awareness&lt;BR /&gt;- Switch to UTF8_LCASE: Different collation, full LIKE patterns, limited Unicode awareness&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;DOCUMENTATION REFERENCES&lt;/P&gt;
&lt;P&gt;- LIKE operator: &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/functions/like.html" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/functions/like.html&lt;/A&gt;&lt;BR /&gt;- Collation in Databricks SQL: &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-collation.html" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-collation.html&lt;/A&gt;&lt;BR /&gt;- Supported collations: &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/functions/collations.html" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/functions/collations.html&lt;/A&gt;&lt;BR /&gt;- ILIKE operator: &lt;A href="https://docs.databricks.com/aws/en/sql/language-manual/functions/ilike.html" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/language-manual/functions/ilike.html&lt;/A&gt;&lt;BR /&gt;- Collation limitations with Delta Lake: &lt;A href="https://docs.databricks.com/aws/en/delta/collation.html" target="_blank"&gt;https://docs.databricks.com/aws/en/delta/collation.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The key takeaway is that LIKE has limited collation support by design, and contains()/startswith()/endswith() are the recommended alternatives for UNICODE_CI columns.&lt;/P&gt;
&lt;P&gt;* This reply used an agent system I built to research and draft this response based on the wide set of documentation I have available and previous memory. I personally review the draft for any obvious issues and for monitoring system reliability and update it when I detect any drift, but there is still a small chance that something is inaccurate, especially if you are experimenting with brand new features.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2026 20:19:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/150092#M53237</guid>
      <dc:creator>SteveOstrowski</dc:creator>
      <dc:date>2026-03-07T20:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: LIKE Operator Fails with COLLATE UNICODE_CI Columns</title>
      <link>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/150325#M53361</link>
      <description>&lt;P&gt;Thanks for your quick response and solution on this!!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 05:40:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/like-operator-fails-with-collate-unicode-ci-columns/m-p/150325#M53361</guid>
      <dc:creator>Phani1</dc:creator>
      <dc:date>2026-03-09T05:40:41Z</dc:date>
    </item>
  </channel>
</rss>

