<?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: Hive SQL issue for On-Demand app generation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100718#M18587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it turned out the Hive data source itself was not optimized at all. Based on the way it was structured, when you tried to run the same query directly on the data source (outside of Qlik) it hung as well. The error I received within Qlik was just due to a query timeout. If you can, I would try to run the same query on the data set outside of Qlik. It took me a while to determine this because I didn't have access to the data source and was relying on someone else to run the query for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2016 15:21:19 GMT</pubDate>
    <dc:creator>Danny_Langley</dc:creator>
    <dc:date>2016-11-08T15:21:19Z</dc:date>
    <item>
      <title>Hive SQL issue for On-Demand app generation</title>
      <link>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100714#M18583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's a Saturday, but I'm really hoping there are some losers like me out there doing some work/monitoring the Community posts - ha. I'm working on an on-demand app and got the Selection app template built and working. I'm now trying to get the Details app template working but running into a hiccup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm connecting to a Hortonworks Hive table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I'm trying to execute the SQL command below and I’m getting the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: red; background: white;"&gt;SQL##f - SqlState: S1000, ErrorCode: 35, ErrorMsg: [Hortonworks][Hardy] (35) Error from server: error code: '0' error message: 'ExecuteStatement finished with operation state: ERROR_STATE'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mailpiece_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; induction_date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; primary_year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; primary_month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; days_to_deliver,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; actual_delivery_days,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; piece_failed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; area,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; district,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; facility&lt;/P&gt;&lt;P&gt;FROM HIVE.`default`.spm&lt;/P&gt;&lt;P&gt;$(WHERE_PART);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially, while debugging I kept parsing down the dynamically created WHERE clause [$(WHERE_PART)] until it was an extremely basic where clause (e.g., WHERE facility = "NEW YORK") and that was still producing the error. Then I even hard coded ‘WHERE facility = “New York”’ and received the same error. If I remove the where clause, the sql executes fine, so the problem seems to be within the Where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m a little worried because I did some research and found the following Community post:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/173802"&gt;https://community.qlik.com/thread/173802&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;It seems like it’s the same (or very similar) issue and no one has mentioned a solution? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas out there???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2016 15:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100714#M18583</guid>
      <dc:creator>Danny_Langley</dc:creator>
      <dc:date>2016-08-27T15:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hive SQL issue for On-Demand app generation</title>
      <link>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100715#M18584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try putting where clause directly (without Variable) and see if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2016 19:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100715#M18584</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-08-27T19:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hive SQL issue for On-Demand app generation</title>
      <link>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100716#M18585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. Yes, I tried without the variable and that did not work. That's what I meant when I said I hardcoded the where clause above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2016 20:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100716#M18585</guid>
      <dc:creator>Danny_Langley</dc:creator>
      <dc:date>2016-08-27T20:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hive SQL issue for On-Demand app generation</title>
      <link>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100717#M18586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing the same issue. I cannot use a WHERE clause or GROUP BY or even a simple function on the query. I can only read the table with no modifications. Did you find any answer about this? I don't know if the problem is with the ODBC connector or it is a bug from some Qlikview version or what else...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 12:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100717#M18586</guid>
      <dc:creator />
      <dc:date>2016-11-08T12:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hive SQL issue for On-Demand app generation</title>
      <link>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100718#M18587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it turned out the Hive data source itself was not optimized at all. Based on the way it was structured, when you tried to run the same query directly on the data source (outside of Qlik) it hung as well. The error I received within Qlik was just due to a query timeout. If you can, I would try to run the same query on the data set outside of Qlik. It took me a while to determine this because I didn't have access to the data source and was relying on someone else to run the query for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 15:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hive-SQL-issue-for-On-Demand-app-generation/m-p/1100718#M18587</guid>
      <dc:creator>Danny_Langley</dc:creator>
      <dc:date>2016-11-08T15:21:19Z</dc:date>
    </item>
  </channel>
</rss>

