<?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: Databricks SQL Wildcard Operator Not Parsed Correctly in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/databricks-sql-wildcard-operator-not-parsed-correctly/m-p/104043#M1785</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/137111"&gt;@nomnomnom543&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try this&amp;nbsp;&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class=""&gt;*&lt;/SPAN&gt; &lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; table_name &lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt; &lt;SPAN class=""&gt;LEFT&lt;/SPAN&gt;(column_name, LENGTH(&lt;SPAN class=""&gt;'string'&lt;/SPAN&gt;)) &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;'string'&lt;/SPAN&gt;;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2025 09:41:47 GMT</pubDate>
    <dc:creator>Rahul_Saini</dc:creator>
    <dc:date>2025-01-03T09:41:47Z</dc:date>
    <item>
      <title>Databricks SQL Wildcard Operator Not Parsed Correctly</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-sql-wildcard-operator-not-parsed-correctly/m-p/102770#M1763</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;Wasn't sure if this was just an error on my part, but I'm using a Databricks Pro SQL warehouse and unity catalogue to pull some data from my tables. I'm having this issue where whenever I try and use a wildcard operator with my LIKE clause, I'm getting a Parse error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I write a query like SELECT * FROM table_name WHERE column_name LIKE 'string' it works fine. But when I include a wildcard operator in my query, SELECT * FROM table_name WHERE column_name LIKE 'string%', then it throws a parse error. Specifically the error says,&amp;nbsp;&lt;SPAN&gt;Parse error at line: 1, column: 3620: Incorrect syntax near ''%string%'', with the string portion surrounded by two single quotes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My column is a string&amp;nbsp; column in the table. Anyone else experience something similar?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 10:37:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-sql-wildcard-operator-not-parsed-correctly/m-p/102770#M1763</guid>
      <dc:creator>nomnomnom543</dc:creator>
      <dc:date>2024-12-20T10:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL Wildcard Operator Not Parsed Correctly</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-sql-wildcard-operator-not-parsed-correctly/m-p/102778#M1764</link>
      <description>&lt;P&gt;Is this only happening with Pro warehouse, if you test with Serverless for example does it work? I have tested using syntax&amp;nbsp;&lt;BR /&gt;SELECT * FROM table_name WHERE column_name LIKE 'string%' and it has worked as expected for me on Serverless.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 11:59:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-sql-wildcard-operator-not-parsed-correctly/m-p/102778#M1764</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-12-20T11:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL Wildcard Operator Not Parsed Correctly</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-sql-wildcard-operator-not-parsed-correctly/m-p/102781#M1765</link>
      <description>&lt;P&gt;My organization doesn't have serverless SQL enabled, so I'm not able to try that out. But I did try a query with a wildcard operator on a different table and Pro warehouse and it worked like expected. Looks like it might be an issue with the table itself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 12:10:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-sql-wildcard-operator-not-parsed-correctly/m-p/102781#M1765</guid>
      <dc:creator>nomnomnom543</dc:creator>
      <dc:date>2024-12-20T12:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL Wildcard Operator Not Parsed Correctly</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/databricks-sql-wildcard-operator-not-parsed-correctly/m-p/104043#M1785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/137111"&gt;@nomnomnom543&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try this&amp;nbsp;&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class=""&gt;*&lt;/SPAN&gt; &lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; table_name &lt;SPAN class=""&gt;WHERE&lt;/SPAN&gt; &lt;SPAN class=""&gt;LEFT&lt;/SPAN&gt;(column_name, LENGTH(&lt;SPAN class=""&gt;'string'&lt;/SPAN&gt;)) &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;'string'&lt;/SPAN&gt;;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 09:41:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/databricks-sql-wildcard-operator-not-parsed-correctly/m-p/104043#M1785</guid>
      <dc:creator>Rahul_Saini</dc:creator>
      <dc:date>2025-01-03T09:41:47Z</dc:date>
    </item>
  </channel>
</rss>

