<?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 insert null value to Postgres/Redshift timestamp column in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-null-value-to-Postgres-Redshift-timestamp-column/m-p/2272883#M50034</link>
    <description>Hello Guys..
&lt;BR /&gt;there is no error after all.
&lt;BR /&gt;Looks like if you want to insert null value into redshift you HAVE TO use redshift output component instead of postgres :/
&lt;BR /&gt;I used to pick postgres one because of my habits but looks like they have some differences in handling specific cases.
&lt;BR /&gt;thanks!</description>
    <pubDate>Tue, 05 May 2015 09:42:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-05T09:42:18Z</dc:date>
    <item>
      <title>How to insert null value to Postgres/Redshift timestamp column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-null-value-to-Postgres-Redshift-timestamp-column/m-p/2272880#M50031</link>
      <description>Hello All, 
&lt;BR /&gt;I have a problem with inserting null value into Redshift (postgres) timestamp column. 
&lt;BR /&gt;I got 'Batch entry 0 INSERT INTO "public"."tester" ("id","txt","var","data") VALUES (1,ala ma kota,22,NULL) was aborted. &amp;nbsp;Call getNextException to see the cause.' error. 
&lt;BR /&gt;After I disabled batch mode it was converted into: 'ERROR: Specified types or functions (one per INFO message) not supported on Redshift tables.ERROR: current transaction is aborted, commands ignored until end of transaction block' error. 
&lt;BR /&gt;I've add tJava component which print my query: 'INSERT INTO "public"."tester" ("id","txt","var","data") VALUES (2,'ala ma kota',33,null)' and:&amp;nbsp; 
&lt;BR /&gt;if I copy paste this exact query into my redshift client and execute it, it works perfect &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 
&lt;BR /&gt;If I replace empty value with TalendDate.GetCurrentDate() it works perfect, 
&lt;BR /&gt;If I do something like 'Relational.ISNULL(row1.when_items_updated)?null:row1.when_items_updated &amp;nbsp; ', it's not working. 
&lt;BR /&gt;environment: "Talend Open Studio for Data Integration" Version: 5.6.1 Build id: V5.6.1_20141207_1530 
&lt;BR /&gt;PS. this is my first question if I missed some vital information, please dont hesitate to ask. 
&lt;BR /&gt;my screenshots: 
&lt;BR /&gt; 
&lt;BR /&gt;this is with TalendDate.getCurrentDate() replacement. no error 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDUp.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150919iD0B4FE6482E60B45/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDUp.png" alt="0683p000009MDUp.png" /&gt;&lt;/span&gt;no data for date (null) 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDZA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147149iFD15EAF983FCA453/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDZA.png" alt="0683p000009MDZA.png" /&gt;&lt;/span&gt;mapping 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDZF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134488iF92F842D2B1436FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDZF.png" alt="0683p000009MDZF.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 04 May 2015 23:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-null-value-to-Postgres-Redshift-timestamp-column/m-p/2272880#M50031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-04T23:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert null value to Postgres/Redshift timestamp column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-null-value-to-Postgres-Redshift-timestamp-column/m-p/2272881#M50032</link>
      <description>Hi,
&lt;BR /&gt;I think you have specified batch insert size, due to that you are getting this error.
&lt;BR /&gt;To solve your issue remove batch size in advanced settings of postgresoutput component.
&lt;BR /&gt;-Bhanu</description>
      <pubDate>Tue, 05 May 2015 05:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-null-value-to-Postgres-Redshift-timestamp-column/m-p/2272881#M50032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T05:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert null value to Postgres/Redshift timestamp column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-null-value-to-Postgres-Redshift-timestamp-column/m-p/2272882#M50033</link>
      <description>Hello Bhanu,&amp;nbsp;&lt;BR /&gt;it's already non batch insert, thats why I am able to read correct error description.</description>
      <pubDate>Tue, 05 May 2015 08:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-null-value-to-Postgres-Redshift-timestamp-column/m-p/2272882#M50033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T08:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert null value to Postgres/Redshift timestamp column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-null-value-to-Postgres-Redshift-timestamp-column/m-p/2272883#M50034</link>
      <description>Hello Guys..
&lt;BR /&gt;there is no error after all.
&lt;BR /&gt;Looks like if you want to insert null value into redshift you HAVE TO use redshift output component instead of postgres :/
&lt;BR /&gt;I used to pick postgres one because of my habits but looks like they have some differences in handling specific cases.
&lt;BR /&gt;thanks!</description>
      <pubDate>Tue, 05 May 2015 09:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-null-value-to-Postgres-Redshift-timestamp-column/m-p/2272883#M50034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T09:42:18Z</dc:date>
    </item>
  </channel>
</rss>

