<?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>question Re: Exception: Syntax error when trying to Escape the apostrophe in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Exception-Syntax-error-when-trying-to-Escape-the-apostrophe/m-p/283681#M210791</link>
    <description>&lt;P&gt;I'd suggest you use a backslash to escape special characters. Please try this query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from hi_problem_view 
where 
state like 'Won\'t fix'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2019 02:31:37 GMT</pubDate>
    <dc:creator>robbiez</dc:creator>
    <dc:date>2019-11-22T02:31:37Z</dc:date>
    <item>
      <title>Exception: Syntax error when trying to Escape the apostrophe</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exception-Syntax-error-when-trying-to-Escape-the-apostrophe/m-p/283663#M210779</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am getting the below error when trying to escape the apostrophe character in HUE Impala.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;select * from hi_problem_view &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;where &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;state like 'Won''t fix'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;won't fix is a value that I am trying to filter by for records.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;AnalysisException: Syntax error in line 3:undefined: state like 'Won''t fix' ^ Encountered: STRING LITERAL Expected: AND, BETWEEN, DIV, GROUP, HAVING, ILIKE, IN, IREGEXP, IS, LIKE, LIMIT, NOT, OFFSET, OR, ORDER, REGEXP, RLIKE, UNION CAUSED BY: Exception: Syntax error&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 11:34:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exception-Syntax-error-when-trying-to-Escape-the-apostrophe/m-p/283663#M210779</guid>
      <dc:creator>Shikhar88</dc:creator>
      <dc:date>2026-04-21T11:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: Syntax error when trying to Escape the apostrophe</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exception-Syntax-error-when-trying-to-Escape-the-apostrophe/m-p/283681#M210791</link>
      <description>&lt;P&gt;I'd suggest you use a backslash to escape special characters. Please try this query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from hi_problem_view 
where 
state like 'Won\'t fix'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 02:31:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exception-Syntax-error-when-trying-to-Escape-the-apostrophe/m-p/283681#M210791</guid>
      <dc:creator>robbiez</dc:creator>
      <dc:date>2019-11-22T02:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: Syntax error when trying to Escape the apostrophe</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Exception-Syntax-error-when-trying-to-Escape-the-apostrophe/m-p/283867#M210855</link>
      <description>&lt;P&gt;Thanks! That worked&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 21:55:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Exception-Syntax-error-when-trying-to-Escape-the-apostrophe/m-p/283867#M210855</guid>
      <dc:creator>Shikhar88</dc:creator>
      <dc:date>2019-11-22T21:55:41Z</dc:date>
    </item>
  </channel>
</rss>

