<?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: [resolved] Data transformation (Postgres boolean -&amp;gt; Oracle NUM) - Migration in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299896#M72183</link>
    <description>Hello 
&lt;BR /&gt;If the data type of output column is BigDecimal, try
&lt;BR /&gt;
&lt;PRE&gt;row1.columnName==false?new BigDecimal(0) :new BigDecimal(1)&lt;/PRE&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Wed, 06 Jan 2010 10:25:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-01-06T10:25:07Z</dc:date>
    <item>
      <title>[resolved] Data transformation (Postgres boolean -&gt; Oracle NUM) - Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299893#M72180</link>
      <description>Hi,&lt;BR /&gt;Language: Java&lt;BR /&gt;Database used: Postgres 8.4 / Oracle 10g&lt;BR /&gt;I am trying to use tMap component to transform data from boolean type in Postgres to NUM in Oracle (e.g. if column has value false then insert 0)&lt;BR /&gt;This is needed as part of Data migration exercise. Some how I did not find way how to do it. I looked through component tConvertType but that does not seem to be helpful either.&lt;BR /&gt;Any help on how to achieve this?&lt;BR /&gt;Thanks,&lt;BR /&gt;Mahendra</description>
      <pubDate>Sat, 16 Nov 2024 13:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299893#M72180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Data transformation (Postgres boolean -&gt; Oracle NUM) - Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299894#M72181</link>
      <description>Hello Mahendra 
&lt;BR /&gt;Try the following expression on tMap: eg: 
&lt;BR /&gt;tPostgresInput--row1--tMap--tOracleOutput 
&lt;BR /&gt; 
&lt;PRE&gt;row1.columnName==false?0:1&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 06 Jan 2010 09:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299894#M72181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T09:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Data transformation (Postgres boolean -&gt; Oracle NUM) - Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299895#M72182</link>
      <description>Hi Shong, 
&lt;BR /&gt;I tried the option suggested by you, but this does not work. I have uploaded the screen shot of the same. 
&lt;BR /&gt;The error message coming up after clicking "Test!" button is 
&lt;BR /&gt;"Type mismatch: cannot convert from int to BigDecimal" 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Mahendra</description>
      <pubDate>Wed, 06 Jan 2010 09:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299895#M72182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T09:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Data transformation (Postgres boolean -&gt; Oracle NUM) - Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299896#M72183</link>
      <description>Hello 
&lt;BR /&gt;If the data type of output column is BigDecimal, try
&lt;BR /&gt;
&lt;PRE&gt;row1.columnName==false?new BigDecimal(0) :new BigDecimal(1)&lt;/PRE&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 06 Jan 2010 10:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299896#M72183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T10:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Data transformation (Postgres boolean -&gt; Oracle NUM) - Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299897#M72184</link>
      <description>Thanks Shong, 
&lt;BR /&gt;this works.
&lt;BR /&gt;However I am still getting the message "Exception in thread "main" java.lang.Error: Unresolved compilation problems: ".</description>
      <pubDate>Wed, 06 Jan 2010 10:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299897#M72184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T10:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Data transformation (Postgres boolean -&gt; Oracle NUM) - Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299898#M72185</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;However I am still getting the message "Exception in thread "main" java.lang.Error: Unresolved compilation problems: ".&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Does it show the message when you click on 'Test' button? Don't worry, just forget it and I suggest you not to use 'Test' button, it always confuse user eventhough there are not compilation problems in the generated code.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 06 Jan 2010 14:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299898#M72185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T14:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Data transformation (Postgres boolean -&gt; Oracle NUM) - Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299899#M72186</link>
      <description>Try this using tMap.. &amp;nbsp;row2.Hidden.compareTo(row2.Hidden)</description>
      <pubDate>Tue, 25 Nov 2014 20:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Data-transformation-Postgres-boolean-gt-Oracle-NUM/m-p/2299899#M72186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-25T20:38:32Z</dc:date>
    </item>
  </channel>
</rss>

