<?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 Mapping one data type to another in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Mapping-one-data-type-to-another/m-p/2283546#M57426</link>
    <description>I've set up data replication from one database to another. From each database I've imported a table schema and find that the data types for each differ where one holds Double values and the other Float. 
&lt;BR /&gt;My issue is that, while configuring a tMap to map fields between the database tables (chng_qty(Double) -to- CHGQT(Float)) the tMap shows an error "Error on row1.chng_qty=&amp;gt; Type mismatch: Cannot convert from Double to Float." 
&lt;BR /&gt;I've tried to make this conversion by using the Expression Builder but can find no way to do this. 
&lt;BR /&gt;Can anyone please help me understand how to convert data types between database schemas? 
&lt;BR /&gt;Thanks. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCRZ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135221i98A863E55F018DC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCRZ.jpg" alt="0683p000009MCRZ.jpg" /&gt;&lt;/span&gt;</description>
    <pubDate>Sat, 16 Nov 2024 14:20:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:20:43Z</dc:date>
    <item>
      <title>Mapping one data type to another</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-one-data-type-to-another/m-p/2283546#M57426</link>
      <description>I've set up data replication from one database to another. From each database I've imported a table schema and find that the data types for each differ where one holds Double values and the other Float. 
&lt;BR /&gt;My issue is that, while configuring a tMap to map fields between the database tables (chng_qty(Double) -to- CHGQT(Float)) the tMap shows an error "Error on row1.chng_qty=&amp;gt; Type mismatch: Cannot convert from Double to Float." 
&lt;BR /&gt;I've tried to make this conversion by using the Expression Builder but can find no way to do this. 
&lt;BR /&gt;Can anyone please help me understand how to convert data types between database schemas? 
&lt;BR /&gt;Thanks. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCRZ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135221i98A863E55F018DC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCRZ.jpg" alt="0683p000009MCRZ.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-one-data-type-to-another/m-p/2283546#M57426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping one data type to another</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-one-data-type-to-another/m-p/2283547#M57427</link>
      <description>You should be able to use the native java methods for float to convert it to a double.&lt;BR /&gt;A float in java has the method doubleValue() which returns a double from a float value.  You should be able to do something akin to floatValue.doubleValue() and to get the double you want from the float.</description>
      <pubDate>Fri, 06 Jun 2008 16:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-one-data-type-to-another/m-p/2283547#M57427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-06T16:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping one data type to another</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-one-data-type-to-another/m-p/2283548#M57428</link>
      <description>Thanks for the suggestiong. 
&lt;BR /&gt;I'm a Java programmer so I understand that I could do the conversion in a method of some sort but I'm unclear how to get that processing into the tMap. I've tried to add my own methods to the DataOperation expression class but it's read-only in the workspace. 
&lt;BR /&gt;I assumed that data type mapping would be such a common practice that there'd be a mechanism for it already without my having to code it into a custom routine. 
&lt;BR /&gt;Is that not the case?</description>
      <pubDate>Fri, 06 Jun 2008 16:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-one-data-type-to-another/m-p/2283548#M57428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-06T16:53:12Z</dc:date>
    </item>
  </channel>
</rss>

