<?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: [NIFI] [SelectHiveSQL] failed negative string in the column name in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231813#M70012</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10363/maykiwogno.html" nodeid="10363" target="_blank"&gt;@mayki wogno&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you use &lt;STRONG&gt;hive escape character &lt;/STRONG&gt;in your select statement&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hive escape character:-&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;`&lt;/PRE&gt;&lt;P&gt;Use the &lt;STRONG&gt;above character to escape&lt;/STRONG&gt; from your select statement and try to run select HiveQL again&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New Select HIVEQL statement:-&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;select country,year,`delta-1` from &amp;lt;table&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Select HiveQL Processor config Screenshot:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="41449-select-hive-ql.png" style="width: 840px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14908iAD068667B6C6E240/image-size/medium?v=v2&amp;amp;px=400" role="button" title="41449-select-hive-ql.png" alt="41449-select-hive-ql.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 00:33:48 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-08-18T00:33:48Z</dc:date>
    <item>
      <title>[NIFI] [SelectHiveSQL] failed negative string in the column name</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231812#M70011</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;I've used SelectHiveSQL to make a select but I got an issue &lt;/P&gt;&lt;P&gt;it seems that the column name "delta-1", it was not correctly set on the select command. &lt;/P&gt;&lt;PRE&gt;

2017-10-20
14:28:05,805 ERROR [Timer-Driven Process Thread-7]
o.a.nifi.processors.hive.SelectHiveQL SelectHiveQL[id=d3043004] 
Unable to execute HiveQL select query select country,year,delta-1 from
table1 for StandardFlowFileRecord[uuid=d1e4662,claim=,offset=0,name=2846304697532889,size=0]
due to org.apache.nifi.processor.exception.ProcessException: org.apache.hive.service.cli.HiveSQLException:
Error while compiling statement: 
FAILED:SemanticException [Error 10004]: Line 1:33 Invalid table alias or column
reference 'delta': (possible column names are: country, year, delta-1, ); routing to failure:
org.apache.nifi.processor.exception.ProcessException:
org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: 


&lt;/PRE&gt;&lt;P&gt;thanks for helps&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 19:47:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231812#M70011</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2017-10-20T19:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: [NIFI] [SelectHiveSQL] failed negative string in the column name</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231813#M70012</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10363/maykiwogno.html" nodeid="10363" target="_blank"&gt;@mayki wogno&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you use &lt;STRONG&gt;hive escape character &lt;/STRONG&gt;in your select statement&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hive escape character:-&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;`&lt;/PRE&gt;&lt;P&gt;Use the &lt;STRONG&gt;above character to escape&lt;/STRONG&gt; from your select statement and try to run select HiveQL again&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New Select HIVEQL statement:-&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;select country,year,`delta-1` from &amp;lt;table&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Select HiveQL Processor config Screenshot:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="41449-select-hive-ql.png" style="width: 840px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14908iAD068667B6C6E240/image-size/medium?v=v2&amp;amp;px=400" role="button" title="41449-select-hive-ql.png" alt="41449-select-hive-ql.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 00:33:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231813#M70012</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T00:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: [NIFI] [SelectHiveSQL] failed negative string in the column name</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231814#M70013</link>
      <description>&lt;P&gt;@Shu : thanks. I have tried with espace caracter, but i've sent it to splitAvro and got the issue with avro.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 20:59:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231814#M70013</guid>
      <dc:creator>maykiwogno</dc:creator>
      <dc:date>2017-10-20T20:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: [NIFI] [SelectHiveSQL] failed negative string in the column name</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231815#M70014</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10363/maykiwogno.html" nodeid="10363"&gt;@mayki wogno&lt;/A&gt;, We can do alias for the &lt;STRONG&gt;delta-1&lt;/STRONG&gt; column as &lt;STRONG&gt;delta_1&lt;/STRONG&gt; this alias will help you to resolve your issue.&lt;/P&gt;&lt;PRE&gt;select country,year,`delta-1` as delta_1 from &amp;lt;table&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Oct 2017 21:24:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231815#M70014</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-10-20T21:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: [NIFI] [SelectHiveSQL] failed negative string in the column name</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231816#M70015</link>
      <description>&lt;P&gt;In Apache NiFi 1.5.0 (not yet released at the time of this writing), SelectHiveQL (via &lt;A target="_blank" href="https://issues.apache.org/jira/browse/NIFI-4473"&gt;NIFI-4473&lt;/A&gt;) will have a property to Normalize Names for Avro, so you won't have to do the alias.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 21:55:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NIFI-SelectHiveSQL-failed-negative-string-in-the-column-name/m-p/231816#M70015</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-10-20T21:55:57Z</dc:date>
    </item>
  </channel>
</rss>

