<?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 Hive ODBC Parsing Error in QV Select Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hive-ODBC-Parsing-Error-in-QV-Select-Statement/m-p/992718#M644737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm having the exact same problem as documented in &lt;A href="https://community.qlik.com/thread/142680"&gt;Hive error&lt;/A&gt;, but figured that rather than appending to a stale thread I would start a new one to get some fresh eyes on the topic.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL SELECT&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;"the_date" as Date&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;"red_fox" as Fox,&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;"chubby_chick" as Chicken,&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="color: #993300;"&gt;"regexp_extract(fluffy_bunny, '\/(.*)-', 1)" as Bunny&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM HIVE.the_animals."farm_land"&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WHERE "the_date" &amp;gt; '$(vHiveStartDate)'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AND "the_date" &amp;lt; '$(vHiveEndDate)';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Breaks with an error message of the sort:&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: #a6a6a6;"&gt;Error: SQL##f - SqlState: S1000, ErrorCode: 35, ErrorMsg: [Hortonworks][HiveODBC] (35) Error from Hive: error code: '40000' error message: 'Error while compiling statement: FAILED: ParseException line 10:14 cannot recognize input near 'the_animals' '.' '"farm_land"' in table name'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The Select statement works just fine without the regex line in it. I've tried various quotation mark combinations with no success thus far. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Can anyone assist with the syntax?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...for the record, a &lt;SPAN style="color: #993300; font-size: 13.3333px;"&gt;select the_date, regexp_extract(fluffy_bunny, '\/(.*)-', 1) from farm_land;&lt;/SPAN&gt; line executes without a problem inside Hive command line. It extracts &lt;SPAN style="color: #808000;"&gt;f-bunnySoft&lt;/SPAN&gt; from string &lt;SPAN style="color: #808000;"&gt;fluffy/f-bunnySoft-4u54ou2oiu53ou5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Dec 2015 16:00:22 GMT</pubDate>
    <dc:creator>jwaligora</dc:creator>
    <dc:date>2015-12-10T16:00:22Z</dc:date>
    <item>
      <title>Hive ODBC Parsing Error in QV Select Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Hive-ODBC-Parsing-Error-in-QV-Select-Statement/m-p/992718#M644737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm having the exact same problem as documented in &lt;A href="https://community.qlik.com/thread/142680"&gt;Hive error&lt;/A&gt;, but figured that rather than appending to a stale thread I would start a new one to get some fresh eyes on the topic.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL SELECT&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;"the_date" as Date&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;"red_fox" as Fox,&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;"chubby_chick" as Chicken,&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="color: #993300;"&gt;"regexp_extract(fluffy_bunny, '\/(.*)-', 1)" as Bunny&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM HIVE.the_animals."farm_land"&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WHERE "the_date" &amp;gt; '$(vHiveStartDate)'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AND "the_date" &amp;lt; '$(vHiveEndDate)';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Breaks with an error message of the sort:&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: #a6a6a6;"&gt;Error: SQL##f - SqlState: S1000, ErrorCode: 35, ErrorMsg: [Hortonworks][HiveODBC] (35) Error from Hive: error code: '40000' error message: 'Error while compiling statement: FAILED: ParseException line 10:14 cannot recognize input near 'the_animals' '.' '"farm_land"' in table name'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The Select statement works just fine without the regex line in it. I've tried various quotation mark combinations with no success thus far. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Can anyone assist with the syntax?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...for the record, a &lt;SPAN style="color: #993300; font-size: 13.3333px;"&gt;select the_date, regexp_extract(fluffy_bunny, '\/(.*)-', 1) from farm_land;&lt;/SPAN&gt; line executes without a problem inside Hive command line. It extracts &lt;SPAN style="color: #808000;"&gt;f-bunnySoft&lt;/SPAN&gt; from string &lt;SPAN style="color: #808000;"&gt;fluffy/f-bunnySoft-4u54ou2oiu53ou5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 16:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hive-ODBC-Parsing-Error-in-QV-Select-Statement/m-p/992718#M644737</guid>
      <dc:creator>jwaligora</dc:creator>
      <dc:date>2015-12-10T16:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Parsing Error in QV Select Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Hive-ODBC-Parsing-Error-in-QV-Select-Statement/m-p/992719#M644738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide more information as far as the version of the ODBC driver that you are using and also how you are incorporating such SQL statement in your Qlik app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hive-ODBC-Parsing-Error-in-QV-Select-Statement/m-p/992719#M644738</guid>
      <dc:creator>Jesús_Centeno</dc:creator>
      <dc:date>2016-01-25T16:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Parsing Error in QV Select Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Hive-ODBC-Parsing-Error-in-QV-Select-Statement/m-p/992720#M644739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Our QV prime has raised this up to the QV Support team, so I'm expecting some clarity to follow shortly.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;x86: Hortonworks Hive ODBC Driver with SQL Connector &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2.0.5&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;x64: &lt;SPAN style="font-size: 13.3333px;"&gt;Hortonworks Hive ODBC Driver with SQL Connector 1.4.8&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;With &amp;amp; without 'Force 32-bit' setting&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Not much by way of 'incorporation'. I just put the following into the script box, and then attempt to execute.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;LET vConnName = 'Buzz';&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;ODBC CONNECT TO '$(vConnName)';&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;FurryTab: &lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;SQL SELECT&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(the_date) as Latest&amp;nbsp; &lt;SPAN style="color: #008000;"&gt;// works fine&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; distinct reverse(the_date) as Date_Flip&amp;nbsp; &lt;SPAN style="color: #993300;"&gt;// does not work&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(instr(fluffy_bunny,'black')&amp;gt;0) as Shady_Bunny&amp;nbsp; &lt;SPAN style="color: #993300;"&gt;// does not work&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;FROM HIVE.the_animals."farm_land"&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;WHERE [the_date] &amp;gt;= '20160107' and [the_date] &amp;lt;= '20160109';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 17:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hive-ODBC-Parsing-Error-in-QV-Select-Statement/m-p/992720#M644739</guid>
      <dc:creator>jwaligora</dc:creator>
      <dc:date>2016-01-25T17:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Parsing Error in QV Select Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Hive-ODBC-Parsing-Error-in-QV-Select-Statement/m-p/992721#M644740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problems were resolved with a bit of hand-holding from QV support (Thanks!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I've been a bit overzealous with my use of double quotes and square brackets. Queries work fine after removal of quotes off the table name and removal of quotes (or square brackets) off field names referenced in the WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FurryTab:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SQL SELECT&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; distinct reverse(the_date) as Date_Flip&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FROM HIVE.the_animals.farm_land&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #993300;"&gt; // NO quotes!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;WHERE the_date &amp;gt;= '20160107' and the_date &amp;lt;= '20160109';&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #993300;"&gt; // NO quotes or brackets around field names!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For supplementary info, you can check out the "Quotation Marks in Scripting" help file. The part about double quotes sometimes designating variables instead of fields is noteworthy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is still unclear why the max() function processed correctly regardless of the presence of "" and [], while the reverse() function did not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, using backquotes `` aka grave accents around field names inside the WHERE clause, seemed to cause no issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 20:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hive-ODBC-Parsing-Error-in-QV-Select-Statement/m-p/992721#M644740</guid>
      <dc:creator>jwaligora</dc:creator>
      <dc:date>2016-02-16T20:40:24Z</dc:date>
    </item>
  </channel>
</rss>

