<?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 convert object datatype to bigdecimal/double in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-object-datatype-to-bigdecimal-double/m-p/2325892#M95440</link>
    <description>&lt;P&gt;Can you try to set the schema in your MSSQL component to Big Decimal there so that it retrieves it as a big decimal? &amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, then you need to understand what the object contains first. &amp;nbsp;If it is a String, then you can cast the object to a String first like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;new BigDecima((String)columnname)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the BigDecimal constructors here&amp;nbsp;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html&lt;/A&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no constructor for generic Object type. &amp;nbsp;Hence, you will need to know what is in the Object and cast accordingly.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 02:28:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-13T02:28:00Z</dc:date>
    <item>
      <title>How to convert object datatype to bigdecimal/double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-object-datatype-to-bigdecimal-double/m-p/2325891#M95439</link>
      <description>&lt;P&gt;I am using source as ms sql in talend big data version. There is data type as &lt;STRONG&gt;Money.&amp;nbsp;&lt;/STRONG&gt;While fetching schema from db. The data type changed to&amp;nbsp;&lt;STRONG&gt;object.&amp;nbsp;&lt;/STRONG&gt;Now I need to convert it to BigDecimal or Double in tmap. I Tried to use&amp;nbsp;&lt;STRONG&gt;new Bigdecimal(column name).&lt;/STRONG&gt;But Its not working.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-object-datatype-to-bigdecimal-double/m-p/2325891#M95439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert object datatype to bigdecimal/double</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-object-datatype-to-bigdecimal-double/m-p/2325892#M95440</link>
      <description>&lt;P&gt;Can you try to set the schema in your MSSQL component to Big Decimal there so that it retrieves it as a big decimal? &amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, then you need to understand what the object contains first. &amp;nbsp;If it is a String, then you can cast the object to a String first like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;new BigDecima((String)columnname)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the BigDecimal constructors here&amp;nbsp;&lt;A href="https://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html&lt;/A&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no constructor for generic Object type. &amp;nbsp;Hence, you will need to know what is in the Object and cast accordingly.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 02:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-object-datatype-to-bigdecimal-double/m-p/2325892#M95440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-13T02:28:00Z</dc:date>
    </item>
  </channel>
</rss>

