<?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 Write multiple queries in tHiveInput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251377#M35355</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Does anyone know if it is possible to write multiple queries in the tHiveInput component?&amp;amp;nbsp;For example, I have a series&amp;amp;nbsp;of queries like create a table, main query&amp;amp;nbsp;and&amp;amp;nbsp;drop table.&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;I got error messages either "missing EOF" , or " cannot recognize input near ''&amp;amp;lt;1st query tail&amp;amp;gt;''&amp;amp;nbsp; ';'&amp;amp;nbsp; '&amp;amp;lt;2nd query head&amp;amp;gt;' in expression specification" if I use semicolon in between the 2 queries.&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;Thanks!&lt;BR /&gt;Dawn&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2018 21:39:32 GMT</pubDate>
    <dc:creator>Dawn2</dc:creator>
    <dc:date>2018-08-30T21:39:32Z</dc:date>
    <item>
      <title>Write multiple queries in tHiveInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251377#M35355</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Does anyone know if it is possible to write multiple queries in the tHiveInput component?&amp;amp;nbsp;For example, I have a series&amp;amp;nbsp;of queries like create a table, main query&amp;amp;nbsp;and&amp;amp;nbsp;drop table.&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;I got error messages either "missing EOF" , or " cannot recognize input near ''&amp;amp;lt;1st query tail&amp;amp;gt;''&amp;amp;nbsp; ';'&amp;amp;nbsp; '&amp;amp;lt;2nd query head&amp;amp;gt;' in expression specification" if I use semicolon in between the 2 queries.&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;Thanks!&lt;BR /&gt;Dawn&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 21:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251377#M35355</guid>
      <dc:creator>Dawn2</dc:creator>
      <dc:date>2018-08-30T21:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Write multiple queries in tHiveInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251378#M35356</link>
      <description>&lt;P&gt;First component will be tFixedFlowInput component. each line, will have Hive statement.&lt;/P&gt;&lt;P&gt;Connect it with a tHiveRow component and&amp;nbsp; SQL text area will be row1.sqlstmt - String column in tFixedFlowInput should have name "sqlStmt"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use tHiveInput for final select query.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 06:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251378#M35356</guid>
      <dc:creator>SachinD</dc:creator>
      <dc:date>2018-08-31T06:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Write multiple queries in tHiveInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251379#M35357</link>
      <description>&lt;P&gt;Dear SachinD,&lt;/P&gt;
&lt;P&gt;Thank you for your reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean the workflow will be&amp;nbsp;tFixedFlowInput- tHiveRow - tHiveInput? If my queries are -&lt;/P&gt;
&lt;P&gt;1. create table&amp;nbsp;temp as ...&lt;/P&gt;
&lt;P&gt;2. select * from A join temp ....&lt;/P&gt;
&lt;P&gt;3. drop table temp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give more details about it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dawn&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 15:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251379#M35357</guid>
      <dc:creator>Dawn2</dc:creator>
      <dc:date>2018-08-31T15:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Write multiple queries in tHiveInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251380#M35358</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tPreJob--&amp;gt;THiveConnection--&amp;gt;tHDFSConnection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tHiveRow (&lt;SPAN&gt;1. create table&amp;nbsp;temp as .. &lt;/SPAN&gt;) --&amp;gt;THiveLoad (Load Data from HDFS file to Temp table, if your File is in HDFS location) --&amp;gt; on SubjobOk --&amp;gt; THiveInput (&lt;SPAN&gt;2. select * from A join temp ....&lt;/SPAN&gt;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tPostJob--&amp;gt;&amp;nbsp;&lt;SPAN&gt;tHiveRow (3. drop table temp)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;we can drop Temp table in tPostJobs, or we can create temp table using stmt&amp;nbsp;&lt;EM&gt;CREATE TEMPORARY TABLE&lt;/EM&gt;&amp;nbsp;, which will be dropped after use automatically.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sachin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 06:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251380#M35358</guid>
      <dc:creator>SachinD</dc:creator>
      <dc:date>2018-09-03T06:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Write multiple queries in tHiveInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251381#M35359</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Sachin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry for late reply! I was busy with my projects in the last couple of days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think your focus is to load external files into database using Talend components; then drop them after the query. My major concern is how to&amp;nbsp;create/drop/store temp tables in the database through Talend, so I could use them multiple times in the query which can help to improve the performance.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For now I am using Bash Shell scripts to load external txt/csv files from local machine into the Hive database, and also create temp tables in the Hive database through Bash Shell scripts; then do the main query from there; then output txt/csv/xlsx report through Talend; then drop those temp tables (either from external source or from Hive tables) by bash shell scripts. I am sure it is not the best way to handle it...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dawn&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 17:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Write-multiple-queries-in-tHiveInput/m-p/2251381#M35359</guid>
      <dc:creator>Dawn2</dc:creator>
      <dc:date>2018-09-05T17:50:42Z</dc:date>
    </item>
  </channel>
</rss>

