<?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: data type changing in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/data-type-changing/m-p/2234096#M23579</link>
    <description>I do not this that you can do for all the columns dynamically,you can try to check for the teradata.xml mapping you can change it.</description>
    <pubDate>Mon, 04 May 2020 02:19:53 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-05-04T02:19:53Z</dc:date>
    <item>
      <title>data type changing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/data-type-changing/m-p/2234095#M23578</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to load the data from Oracle to Greenplum database using Talend DI. I am getting error with the big decimal data type (DEC) while loading. If I convert type of the DEC to double using tConvertType,&amp;nbsp;the data is getting loaded without errors. However I have hundreds of columns and I am finding it extremely difficult to look each and every column with DEC data type and change it to double in the target load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way by which I can say Talend to Convert all the columns with dec data type to a desired target data type like double so that I don't need to go over each and every column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. regularly updated database of porn sites https://bestpornsites.mobi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 10:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/data-type-changing/m-p/2234095#M23578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-30T10:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: data type changing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/data-type-changing/m-p/2234096#M23579</link>
      <description>I do not this that you can do for all the columns dynamically,you can try to check for the teradata.xml mapping you can change it.</description>
      <pubDate>Mon, 04 May 2020 02:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/data-type-changing/m-p/2234096#M23579</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-04T02:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: data type changing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/data-type-changing/m-p/2234097#M23580</link>
      <description>&lt;P&gt;You can use something similar to this sample code, to convert all fields of one datatype to another.&amp;nbsp; You would do this in a tJavaRow.&amp;nbsp; The sample code looks for all string fields but it could be modified to look for big decimal and convert those in the output to double.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for (java.lang.reflect.Field field: input_row.getClass().getFields()) {&lt;BR /&gt;&lt;BR /&gt;Object objType = field.get(input_row);&lt;BR /&gt;Class type = field.getType();&lt;BR /&gt;&lt;BR /&gt;// Get the matching output field by its field name.&lt;BR /&gt;java.lang.reflect.Field outField = output_row.getClass().getField(field.getName());&lt;BR /&gt;&lt;BR /&gt;// If the field type is String, and it's empty or null do something...&lt;BR /&gt;if(type.getSimpleName().equals("String") &amp;amp;&amp;amp;&lt;BR /&gt;(field.get(input_row) == null || field.get(input_row).equals(""))) {&lt;BR /&gt;outField.set(output_row, " ");&lt;BR /&gt;} else {&lt;BR /&gt;outField.set(output_row, field.get(input_row));&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 14:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/data-type-changing/m-p/2234097#M23580</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2020-05-04T14:48:45Z</dc:date>
    </item>
  </channel>
</rss>

