<?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: tMap problem with int and double, and 0/Null values in Installing and Upgrading</title>
    <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399942#M9373</link>
    <description>Ok I reproduced you problem, indeed null should be automatically set by default for object types (Integer, Long, Double, etc.) when entry is empty. 
&lt;BR /&gt;Set null value explicitly to get round this bad behavior. 
&lt;BR /&gt;"double" is a primitive type, it does not accept null values and it is more performant than Object types. It is activated when Nullable checkbox is unchecked. 
&lt;BR /&gt;"Double" is an Object type, it accepts null values. It is activated when Nullable checkbox is checked.</description>
    <pubDate>Mon, 16 Jul 2007 14:58:52 GMT</pubDate>
    <dc:creator>amaumont</dc:creator>
    <dc:date>2007-07-16T14:58:52Z</dc:date>
    <item>
      <title>tMap problem with int and double, and 0/Null values</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399937#M9368</link>
      <description>Hi, 
&lt;BR /&gt;I saw 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCt7YCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Installing-and-Upgrading/Int-null-gt-0/td-p/61853&lt;/A&gt; that this problem is not new, but the bug attached (1450) is marked as resolved. I use the latest version downloadable (v2.1.0 r4515), and I nearly have the same problem: 
&lt;BR /&gt;In the tMap component, a value is given to all the output fields which are not linked instead of giving them the Null value. Moreover, there is a problem with fields of Double type, because they take the value "0" and it give me the following error: "Expression of table.field is invalid: Error on 0 =&amp;gt; Type mismatch: cannot convert from int to Double." 
&lt;BR /&gt;Is this a bug? 
&lt;BR /&gt;Thanks in advance... 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Nicolas.</description>
      <pubDate>Sat, 16 Nov 2024 14:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399937#M9368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: tMap problem with int and double, and 0/Null values</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399938#M9369</link>
      <description>I have forgotten to say: my Input and Output are Oracle connections, with fields in Number DB type, but used as Double...</description>
      <pubDate>Fri, 13 Jul 2007 09:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399938#M9369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-13T09:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: tMap problem with int and double, and 0/Null values</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399939#M9370</link>
      <description>Up and update: bug attached in bug tracker here =&amp;gt; 1562</description>
      <pubDate>Mon, 16 Jul 2007 10:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399939#M9370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-16T10:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: tMap problem with int and double, and 0/Null values</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399940#M9371</link>
      <description>Sorry for my late answer. 
&lt;BR /&gt;I think your problem is on your input column, indeed when "int" type is used ("int" is a not nullable type), dafault value 0 is put into when NULL value is encountered from Database. 
&lt;BR /&gt;It's the reason that you have the error "Expression of table.field is invalid: Error on 0 =&amp;gt; Type mismatch: cannot convert from int to Double." 
&lt;BR /&gt;Then you can use this expression in your output column : 
&lt;BR /&gt;row1.ID_INTEGER == null ? null : row1.ID_INTEGER.doubleValue() 
&lt;BR /&gt;which will return null if your input column has null value else the double value of your integer.</description>
      <pubDate>Mon, 16 Jul 2007 13:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399940#M9371</guid>
      <dc:creator>amaumont</dc:creator>
      <dc:date>2007-07-16T13:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: tMap problem with int and double, and 0/Null values</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399941#M9372</link>
      <description>thanks for this, it can help me for the moment.
&lt;BR /&gt;But the problem, in fact, is that there is no link to this field of my output table, and ALL Double fields are instancied with 0 as Default value. (another thing I noticed is that some of my fields are "double" and others are "
&lt;B&gt;D&lt;/B&gt;ouble", whereas I have selected always the same type...)</description>
      <pubDate>Mon, 16 Jul 2007 13:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399941#M9372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-16T13:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: tMap problem with int and double, and 0/Null values</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399942#M9373</link>
      <description>Ok I reproduced you problem, indeed null should be automatically set by default for object types (Integer, Long, Double, etc.) when entry is empty. 
&lt;BR /&gt;Set null value explicitly to get round this bad behavior. 
&lt;BR /&gt;"double" is a primitive type, it does not accept null values and it is more performant than Object types. It is activated when Nullable checkbox is unchecked. 
&lt;BR /&gt;"Double" is an Object type, it accepts null values. It is activated when Nullable checkbox is checked.</description>
      <pubDate>Mon, 16 Jul 2007 14:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399942#M9373</guid>
      <dc:creator>amaumont</dc:creator>
      <dc:date>2007-07-16T14:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: tMap problem with int and double, and 0/Null values</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399943#M9374</link>
      <description>oh, thanks!!! I didn't noticed that my tries for the "null" value where on double type... (yes, I'm dumb... ^^)
&lt;BR /&gt;So I can now go on with this. Thank you very much for your answers!!!</description>
      <pubDate>Mon, 16 Jul 2007 15:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/tMap-problem-with-int-and-double-and-0-Null-values/m-p/2399943#M9374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-16T15:52:41Z</dc:date>
    </item>
  </channel>
</rss>

