<?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: Clarification regarding preferred Datatypes used in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320694#M90810</link>
    <description>&lt;P&gt;@Richard Hall​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which one should I go for then out of above 3?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 13:28:33 GMT</pubDate>
    <dc:creator>BA621858188</dc:creator>
    <dc:date>2022-09-06T13:28:33Z</dc:date>
    <item>
      <title>Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320689#M90805</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) what datatype in Talend we can use for currency data type. as per below page, we should not go with float/double.&lt;/P&gt;&lt;P&gt;https://talendweb.wordpress.com/2017/04/26/talend-data-types/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) what is the datatype we can use if we want the precision as 12 and scale as 2 in the target datatype.&lt;/P&gt;&lt;P&gt;ex: target value may be &lt;/P&gt;&lt;P&gt;112&lt;/P&gt;&lt;P&gt;100.45&lt;/P&gt;&lt;P&gt;1023.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320689#M90805</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-09-01T09:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320690#M90806</link>
      <description>&lt;P&gt;BigDecimal is the class to use for currency. Take a look at what Java say about this class. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With regard to your precision, this should be managed by the DB. The BigDecimal will be able to hold the data accurately to be sent to the DB.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 14:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320690#M90806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-01T14:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320691#M90807</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Target is .dat file and they want the exact data type which can fill the data as below. decimal only where it is required.&lt;/P&gt;&lt;P&gt;112&lt;/P&gt;&lt;P&gt;100.45&lt;/P&gt;&lt;P&gt;1023.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help here. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 09:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320691#M90807</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-09-02T09:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320692#M90808</link>
      <description>&lt;P&gt;Ah, OK. A .dat file is either plain text or binary. I will assume that it is plain text rather than binary. If this is the case, you do not need to worry about a "type" for adding this data. The processing of the data within the Job will need it to be carried out using a BigDecimal column. This will maintain its accuracy. But when it goes to the .dat file, all you need to do is format the BigDecimal as String in whatever way you want it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example shown here should enable you to do what you want.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://stackoverflow.com/questions/10269045/format-a-bigdecimal-as-string-with-max-2-decimal-digits-removing-0-on-decimal-p&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 12:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320692#M90808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-02T12:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320693#M90809</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As part of testing,  I have created 3 additional schema in the tfileoutputdelimited component for .DAT file.&lt;/P&gt;&lt;P&gt;3 colums storing same values but different data types &lt;/P&gt;&lt;P&gt;-big decimal(12,2)&lt;/P&gt;&lt;P&gt;-float(12,2)&lt;/P&gt;&lt;P&gt;-double(22,2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my o/p is as below&lt;/P&gt;&lt;P&gt;-for decimal ,  the values are getting rounded off and for the value at source without decimal for ex. 540 for that I am getting 540.00. both is not as per the requirement.&lt;/P&gt;&lt;P&gt;-for float, It is also giving value by doing round and appending . for the values that dont have decimal in it.&lt;/P&gt;&lt;P&gt;-for double, It not rounding but adding .00 for the values that dont have decimal in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 06:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320693#M90809</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-09-03T06:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320694#M90810</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which one should I go for then out of above 3?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320694#M90810</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-09-06T13:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320695#M90811</link>
      <description>&lt;P&gt;Hi @Vrushabh Malbari​,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about the late response, I have been on vacation. Since your requirements are pretty rigid and the dat file is a text file, I think the best way to do this is to format the BigDecimal to a String after all of your calculations have taken place and before you write to the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of doing this can be seen below....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BigDecimal bd = &lt;B&gt;new&lt;/B&gt; BigDecimal(123.454665); //&amp;lt;-- Ignore this line, it is just preparing a new BigDecimal. You will have this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println(bd.setScale(2, java.math.RoundingMode.HALF_UP).toString()); //&amp;lt;-- The System.out just prints the output to the output window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this code.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bd.setScale(2, java.math.RoundingMode.HALF_UP).toString()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....the bd is the BigDecimal, the setScale is a method to format it and the toString outputs the value as a String.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 22:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320695#M90811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-12T22:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320696#M90812</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I should you bigdecimal or decimal with precision and scale as .00 for every value is fine @target as per new requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one more question, I have records like True and False as varchar in source but at Target I want T and F (Boolean) what expression I can use in tmap for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 17:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320696#M90812</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-09-13T17:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320697#M90813</link>
      <description>&lt;P&gt;A varchar is a String. So you can simply use a tMap with an expression like this....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row.booleanColumn.equals("True") ? "T" : "F"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are writing to a file, so all of your output schema can be made up of Strings representing your values.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 17:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320697#M90813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T17:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320698#M90814</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes. agreed on that point but the requirement is to have Boolean datatype at the target schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But its not possible because T and F is not considered as Boolean in Talend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other easy way?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 07:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320698#M90814</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-09-15T07:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320699#M90815</link>
      <description>&lt;P&gt;If the target is a flat file (a file that is just rows of characters) then the target data type doesn't matter. It is just a series of Strings as far as Talend is concerned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If an output file has data like this....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;12, Hello how are?, 12/03/1999, 23.897623, True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.... the columns may have had the types of .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Integer, String, Date, Double, Boolean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;..... but as far as the output is concerned, they are written as a String to the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row.booleanColumn.equals("True") ? "T" : "F"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....will be fine.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 09:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320699#M90815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-15T09:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320700#M90816</link>
      <description>&lt;P&gt;@Richard Hall​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you mean &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row.booleanColumn.equals("True") ? "T" : "F" using this function and output datatype keeping as String.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 15:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320700#M90816</guid>
      <dc:creator>BA621858188</dc:creator>
      <dc:date>2022-09-18T15:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification regarding preferred Datatypes used in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320701#M90817</link>
      <description>&lt;P&gt;Yes&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Clarification-regarding-preferred-Datatypes-used-in-Talend/m-p/2320701#M90817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-19T16:48:54Z</dc:date>
    </item>
  </channel>
</rss>

