<?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: Null handling for Integer,Float type in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239356#M27175</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LM2AAAW"&gt;@h311&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;Thanks for your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It's working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2017 09:35:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-02T09:35:31Z</dc:date>
    <item>
      <title>Null handling for Integer,Float type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239350#M27169</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone say how to validate integer,float columns which have empty instead of the string "null"&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;using below code but still, I'm&amp;nbsp;getting an error like&lt;STRONG&gt; For input string: " "&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I know in input one integer column is coming as empty.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please help me to validate in the correct way.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 10:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239350#M27169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-31T10:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Null handling for Integer,Float type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239351#M27170</link>
      <description>&lt;P&gt;in advanced properties for input component - check Trim All column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;excluding rare cases when spaces is mandatory it help a lot in many cases&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 11:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239351#M27170</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-05-31T11:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Null handling for Integer,Float type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239352#M27171</link>
      <description>&lt;P&gt;You can try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;yourStringData.matches("[-+]?\\d*\\.?\\d+")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 11:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239352#M27171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-31T11:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Null handling for Integer,Float type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239353#M27172</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm getting below error after trying possible ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exception in component tMap_1 (Local_Booking)&lt;BR /&gt;java.lang.NumberFormatException&lt;BR /&gt;at java.math.BigDecimal.parseExp(BigDecimal.java:647)&lt;BR /&gt;at java.math.BigDecimal.&amp;lt;init&amp;gt;(BigDecimal.java:488)&lt;BR /&gt;at java.math.BigDecimal.&amp;lt;init&amp;gt;(BigDecimal.java:383)&lt;BR /&gt;at java.math.BigDecimal.&amp;lt;init&amp;gt;(BigDecimal.java:806)&lt;BR /&gt;at np_old.local_booking_0_1.Local_Booking.tFileInputExcel_1Process(Local_Booking.java:3492)&lt;BR /&gt;at np_old.local_booking_0_1.Local_Booking.runJobInTOS(Local_Booking.java:4571)&lt;BR /&gt;at np_old.local_booking_0_1.Local_Booking.main(Local_Booking.java:4420)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 07:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239353#M27172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-01T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Null handling for Integer,Float type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239354#M27173</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I'm using for &lt;STRONG&gt;string to Bigdecimal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;row1.ORDER_DISCOUNT.equals("null")?null:new BigDecimal(row1.ORDER_DISCOUNT)&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 07:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239354#M27173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-01T07:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Null handling for Integer,Float type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239355#M27174</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;PRE&gt;row1.ORDER_DISCOUNT==null||row1.ORDER_DISCOUNT.equals("")?null:new BigDecimal(row1.ORDER_DISCOUNT)&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jun 2017 23:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239355#M27174</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-06-01T23:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Null handling for Integer,Float type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239356#M27175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LM2AAAW"&gt;@h311&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;Thanks for your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It's working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 09:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239356#M27175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-02T09:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Null handling for Integer,Float type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239357#M27176</link>
      <description>&lt;P&gt;Here is a routine you can use......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    public static boolean isNumeric(String data){
    	boolean returnVal = true;
    	
    	try{
    		Integer.parseInt(data);
    	}catch(Exception ex){
    		returnVal = false;
       	}
    	return returnVal;
    }&lt;/PRE&gt;
&lt;P&gt;I use that to test if String values represent Integers. Just tweak the code to cater for Floats if you need to. It will return true or false based on what you supply the String parameter&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 09:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-handling-for-Integer-Float-type/m-p/2239357#M27176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-02T09:42:44Z</dc:date>
    </item>
  </channel>
</rss>

