<?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: elt update table Redshift in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/elt-update-table-Redshift/m-p/2244391#M30556</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;without design it not possible to tell what wrong&lt;/P&gt;
&lt;P&gt;first of all you could try to check in the Code tab - what SQL query generated and try to run it manually on Redshift&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but in case of simple UPDATE you could always use &lt;STRONG&gt;tRedshiftRow&lt;/STRONG&gt; and write your update manually, it will work same as tELT - run all code on the server without transfer data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards, Vlad&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2019 14:05:27 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2019-04-09T14:05:27Z</dc:date>
    <item>
      <title>elt update table Redshift</title>
      <link>https://community.qlik.com/t5/Talend-Studio/elt-update-table-Redshift/m-p/2244390#M30555</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I created some jobs in TOS in order to implement Insert-Update between tables from different schemas on Redshift.&lt;/P&gt; 
&lt;P&gt;For both cases, I used ELT components, using "Mapping Redshift". No problem for "Insert" task.&lt;/P&gt; 
&lt;P&gt;Actually, I am not able to implement UPDATE. Use case: One table on a schema that has to update another table on a different schema. This is what I've done:&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;Set correctly keys on both tables;&lt;/LI&gt; 
 &lt;LI&gt;"Action on data" : Update (tELTJDBCOutput);&lt;/LI&gt; 
 &lt;LI&gt;Correct mapping on ELTMap. No joins required (one input table that has to update output table). I tried also to inner join input table with a copy (in input) of the output table on key fields.&lt;/LI&gt; 
 &lt;LI&gt;WHERE Clauses : ""&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;The error that the job returns is "single-row subquery returns more than one row".&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried to use also tRedshiftOutput component and tRedshiftRow for the update, and in this case everything is ok. I have to use ELT component because is much faster with lots of data to move.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I wish you can help me!&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Really thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 11:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/elt-update-table-Redshift/m-p/2244390#M30555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-09T11:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: elt update table Redshift</title>
      <link>https://community.qlik.com/t5/Talend-Studio/elt-update-table-Redshift/m-p/2244391#M30556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;without design it not possible to tell what wrong&lt;/P&gt;
&lt;P&gt;first of all you could try to check in the Code tab - what SQL query generated and try to run it manually on Redshift&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but in case of simple UPDATE you could always use &lt;STRONG&gt;tRedshiftRow&lt;/STRONG&gt; and write your update manually, it will work same as tELT - run all code on the server without transfer data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards, Vlad&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 14:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/elt-update-table-Redshift/m-p/2244391#M30556</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-04-09T14:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: elt update table Redshift</title>
      <link>https://community.qlik.com/t5/Talend-Studio/elt-update-table-Redshift/m-p/2244392#M30557</link>
      <description>&lt;P&gt;Really tahnk you for your reply.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As I said, I am able to update table with ordinary talend components, as tDBOutput.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am not able to get update with tELTOutput component, mapping Redshift. So, can you tell me how to set this component to get a correct update?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here, you can see my use-case. The error is "single-row subquery returns more than one row" (table A that update table B. I also set correct keys).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please, provide me a solution for this problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lv7O"&gt;ELT_job.PNG&lt;/A&gt;</description>
      <pubDate>Wed, 10 Apr 2019 08:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/elt-update-table-Redshift/m-p/2244392#M30557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-10T08:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: elt update table Redshift</title>
      <link>https://community.qlik.com/t5/Talend-Studio/elt-update-table-Redshift/m-p/2244393#M30558</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPQCAA4"&gt;@rosemath91&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please check the keys that you have set for updation have unique values in both tables. Normally this error is thrown when the keys which are used to join are not unique.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Pratheek Manjunath&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/elt-update-table-Redshift/m-p/2244393#M30558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-10T10:50:12Z</dc:date>
    </item>
  </channel>
</rss>

