<?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: Split string by SemiColon not working in Beeline but works in Hive in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147872#M56653</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13775/padmanabhan5789.html" nodeid="13775"&gt;@Padmanabhan Vijendran&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you try  with '\073'&lt;/P&gt;&lt;P&gt; select split(fieldname,'\073')[0] from table name&lt;/P&gt;&lt;P&gt;Similar issue seen in beeswax connection used by Hue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.cloudera.org/browse/HUE-1332" target="_blank"&gt;https://issues.cloudera.org/browse/HUE-1332&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 20:27:00 GMT</pubDate>
    <dc:creator>dchiguruvad</dc:creator>
    <dc:date>2017-03-09T20:27:00Z</dc:date>
    <item>
      <title>Split string by SemiColon not working in Beeline but works in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147871#M56652</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to split a string with semicolon using the below query.  In Beeline, Its thrwing me Parse execption error. But in Hive its working fine. I am properly escaping the semicolan in my query. Below is my query.&lt;/P&gt;&lt;PRE&gt;select split(fieldname,'\;') from table name&lt;/PRE&gt;&lt;P&gt;I also tried&lt;/P&gt;&lt;PRE&gt;select split(fieldname,'\\;') from table name&lt;/PRE&gt;&lt;P&gt;I also tried with double quotes. But Nothing is working in Beeline shell.  But in Hive shell, no issues. Query is running fine.&lt;/P&gt;&lt;P&gt;Beeline is throwing below error&lt;/P&gt;&lt;PRE&gt;Error: Error while compiling statement: FAILED: ParseException line 1:29 cannot recognize input near '&amp;lt;EOF&amp;gt;' '&amp;lt;EOF&amp;gt;' '&amp;lt;EOF&amp;gt;' in select expression (state=42000,code=40000)&lt;/PRE&gt;&lt;P&gt;Kindly let me know the proper way to escape the semi colans.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 14:48:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147871#M56652</guid>
      <dc:creator>padmanabhan5789</dc:creator>
      <dc:date>2017-03-09T14:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Split string by SemiColon not working in Beeline but works in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147872#M56653</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13775/padmanabhan5789.html" nodeid="13775"&gt;@Padmanabhan Vijendran&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you try  with '\073'&lt;/P&gt;&lt;P&gt; select split(fieldname,'\073')[0] from table name&lt;/P&gt;&lt;P&gt;Similar issue seen in beeswax connection used by Hue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.cloudera.org/browse/HUE-1332" target="_blank"&gt;https://issues.cloudera.org/browse/HUE-1332&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 20:27:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147872#M56653</guid>
      <dc:creator>dchiguruvad</dc:creator>
      <dc:date>2017-03-09T20:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Split string by SemiColon not working in Beeline but works in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147873#M56654</link>
      <description>&lt;P&gt;Please use backtick for column name and it will treat all characters in the field literally &lt;/P&gt;&lt;P&gt;Table names and column names are case insensitive.
&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;In Hive 0.12 and earlier, only alphanumeric and underscore characters are allowed in table and column names.&lt;/LI&gt;&lt;LI&gt;In Hive 0.13 and later, column names can contain any &lt;A href="http://en.wikipedia.org/wiki/List_of_Unicode_characters"&gt;Unicode&lt;/A&gt; character (see &lt;A href="https://issues.apache.org/jira/browse/HIVE-6013"&gt;HIVE-6013&lt;/A&gt;). Any column name that is specified within backticks (&lt;CODE&gt;`&lt;/CODE&gt;) is treated literally. Within a backtick string, use double backticks (&lt;CODE&gt;``&lt;/CODE&gt;) to represent a backtick character.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Select" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Select&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 20:57:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147873#M56654</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-09T20:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Split string by SemiColon not working in Beeline but works in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147874#M56655</link>
      <description>&lt;P&gt;It worked.. Thanks..&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 18:37:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147874#M56655</guid>
      <dc:creator>padmanabhan5789</dc:creator>
      <dc:date>2017-03-10T18:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Split string by SemiColon not working in Beeline but works in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147875#M56656</link>
      <description>&lt;P&gt;it's not only an issue with split, also with eg concat. escaping a semicolon in hue works fine but beeline errors with the same error as above.&lt;/P&gt;&lt;P&gt;Replacing the semicolon with \073 works here as well.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 14:56:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/147875#M56656</guid>
      <dc:creator>rene_sluiter</dc:creator>
      <dc:date>2017-05-16T14:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split string by SemiColon not working in Beeline but works in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/280047#M56657</link>
      <description>&lt;P&gt;It really works after replacing ';' with '\073' !&lt;/P&gt;&lt;P&gt;I met this problem when using split and ';' in crontab hql, it returns " ParseException line 3:121 cannot recognize input near '&amp;lt;EOF&amp;gt;' '&amp;lt;EOF&amp;gt;' '&amp;lt;EOF&amp;gt;' in select expression".&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2019 05:28:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Split-string-by-SemiColon-not-working-in-Beeline-but-works/m-p/280047#M56657</guid>
      <dc:creator>vera</dc:creator>
      <dc:date>2019-10-12T05:28:29Z</dc:date>
    </item>
  </channel>
</rss>

