<?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: How to update only particular columns with tELT components Postgresql? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-only-particular-columns-with-tELT-components/m-p/2338618#M106835</link>
    <description>Hi, 
&lt;BR /&gt;Would you mind uploading your&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tELT Map component setting screenshot into forum?&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;More information will be helpful for us to address your issue. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
    <pubDate>Mon, 15 Jun 2015 07:56:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-15T07:56:04Z</dc:date>
    <item>
      <title>How to update only particular columns with tELT components Postgresql?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-only-particular-columns-with-tELT-components/m-p/2338617#M106834</link>
      <description>Hello, 
&lt;BR /&gt;I created a job on a Postgres database with the TOS Postgres ELT components. 
&lt;BR /&gt;My goal: to update a dimension table from a prepared (staging) table. 
&lt;BR /&gt;I select all relevant rows through the tELTPostgresqlInput, connect it to the tELT Map and this to tELT Output. 
&lt;BR /&gt;In tELT Ouput the "action on data" is set to "Update" 
&lt;BR /&gt;When I run the job I get following query (some fields where left out for brevity): 
&lt;BR /&gt;UPDATE "dm_pos_reports"."item_dim" 
&lt;BR /&gt;SET "item_dwh_id"=(SELECT "stg_pos"."stg_item_dim_upd"."item_dwh_id" FROM&amp;nbsp; "stg_pos"."stg_item_dim_upd" WHERE dm_pos_reports."item_dim"."item_dwh_id" =&amp;nbsp; "stg_pos"."stg_item_dim_upd"."item_dwh_id"&amp;nbsp; ), 
&lt;BR /&gt;"viipr_item_id"=(SELECT&amp;nbsp; "stg_pos"."stg_item_dim_upd"."viipr_item_id" FROM&amp;nbsp; "stg_pos"."stg_item_dim_upd" WHERE dm_pos_reports."item_dim"."item_dwh_id" =&amp;nbsp; "stg_pos"."stg_item_dim_upd"."item_dwh_id"&amp;nbsp; ), 
&lt;BR /&gt;"item_name"=(SELECT&amp;nbsp; "stg_pos"."stg_item_dim_upd"."item_name" FROM&amp;nbsp; "stg_pos"."stg_item_dim_upd" WHERE dm_pos_reports."item_dim"."item_dwh_id" =&amp;nbsp; "stg_pos"."stg_item_dim_upd"."item_dwh_id"&amp;nbsp; ) 
&lt;BR /&gt;Note: in the tELT Map component I added a where clause, so that each subselect as visibile in above query would contain this where clause. =&amp;gt; Is this the way to do it ? 
&lt;BR /&gt;When this query is run, I get an error on item_dwh_id being null, yet the input data does not contain any item_dwh_id is null records. 
&lt;BR /&gt;However the fact that a key column is being updated is incorrect in the generated query (i.e. the item_dwh_id should not be in the update, it's the key column). 
&lt;BR /&gt;How to solve this? 
&lt;BR /&gt;I already tried to remove the item_dwh_id column from the target schema in the Map component. 
&lt;BR /&gt;But then I get a java error: 
&lt;BR /&gt;Exception in component tELTPostgresqlOutput_2 
&lt;BR /&gt;java.lang.ArrayIndexOutOfBoundsException: 10 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at posreports.dwh_item_dim_0_1.dwh_item_dim.tELTPostgresqlMap_2Process(dwh_item_dim.java:1677) 
&lt;BR /&gt;Apparently the java code generated is still assuming the original number of columns. 
&lt;BR /&gt;Note: I tried changing the schema of the tELTPostgresqlOutput table. Yet eventhough the table schema is set to "Built-in", the schema edit is not retained. 
&lt;BR /&gt;Every time I open the edit schema window, the original table schema as in the Metadata is shown again. 
&lt;BR /&gt;All help appreciated. Thx. 
&lt;BR /&gt;br, 
&lt;BR /&gt;&amp;nbsp;Ruben</description>
      <pubDate>Wed, 03 Jun 2015 13:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-update-only-particular-columns-with-tELT-components/m-p/2338617#M106834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-03T13:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to update only particular columns with tELT components Postgresql?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-update-only-particular-columns-with-tELT-components/m-p/2338618#M106835</link>
      <description>Hi, 
&lt;BR /&gt;Would you mind uploading your&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tELT Map component setting screenshot into forum?&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;More information will be helpful for us to address your issue. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 15 Jun 2015 07:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-update-only-particular-columns-with-tELT-components/m-p/2338618#M106835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-15T07:56:04Z</dc:date>
    </item>
  </channel>
</rss>

