<?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: tExtractJSONFields and Int data type in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-and-Int-data-type/m-p/2376125#M138371</link>
    <description>&lt;P&gt;&lt;SPAN&gt;By default, the&amp;nbsp;&lt;/SPAN&gt;int&lt;SPAN&gt;&amp;nbsp;data type is a 32-bit signed two's complement integer, which has a minimum value of -2^&lt;/SPAN&gt;31&lt;SPAN&gt;&amp;nbsp;and a maximum value of 2^&lt;/SPAN&gt;31&lt;SPAN&gt;-1. So the highest number you could have is&amp;nbsp;2147483647.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Clearly&amp;nbsp;7000516717 or 7000563800 would not hold. Try changing to long - which has a minimum value of -2^63&amp;nbsp;and a maximum value of 2^63-1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Link -&amp;nbsp;&lt;A title="primitive datatype" href="https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html" target="_self" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 08:17:11 GMT</pubDate>
    <dc:creator>iamabhishek</dc:creator>
    <dc:date>2018-08-01T08:17:11Z</dc:date>
    <item>
      <title>tExtractJSONFields and Int data type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-and-Int-data-type/m-p/2376124#M138370</link>
      <description>&lt;P&gt;I am using tExtractJSONFields and chose to do a built in schema.&amp;nbsp; For one of my output columns I chose int for the data type.&amp;nbsp; My data appears to be bypassed when this value is greater than&amp;nbsp;7000516717.&amp;nbsp; I have other rows with values like&amp;nbsp;7000563800 that are being bypassed.&amp;nbsp; Is there a value limit here that I'm unaware of?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 01:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-and-Int-data-type/m-p/2376124#M138370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-01T01:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields and Int data type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-and-Int-data-type/m-p/2376125#M138371</link>
      <description>&lt;P&gt;&lt;SPAN&gt;By default, the&amp;nbsp;&lt;/SPAN&gt;int&lt;SPAN&gt;&amp;nbsp;data type is a 32-bit signed two's complement integer, which has a minimum value of -2^&lt;/SPAN&gt;31&lt;SPAN&gt;&amp;nbsp;and a maximum value of 2^&lt;/SPAN&gt;31&lt;SPAN&gt;-1. So the highest number you could have is&amp;nbsp;2147483647.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Clearly&amp;nbsp;7000516717 or 7000563800 would not hold. Try changing to long - which has a minimum value of -2^63&amp;nbsp;and a maximum value of 2^63-1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Link -&amp;nbsp;&lt;A title="primitive datatype" href="https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html" target="_self" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 08:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-and-Int-data-type/m-p/2376125#M138371</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-08-01T08:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields and Int data type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-and-Int-data-type/m-p/2376126#M138372</link>
      <description>&lt;P&gt;That's because 7000516717 is bigger than the largest value that will fit into a Java int (2147483647). Use a long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Java represents integers in signed 2's complement format. An integer is 32 bits wide. This means the smallest value it can store is -2^31 and that the largest is 2^31 -1. We lose one place on the positive side because we need to be able to represent zero. It would take 33 bits to store 7000516717. You can figure this out quickly by using a log base 2 calculator like this one: &lt;A href="https://www.miniwebtool.com/log-base-2-calculator/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.miniwebtool.com/log-base-2-calculator/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 18:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields-and-Int-data-type/m-p/2376126#M138372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-01T18:33:59Z</dc:date>
    </item>
  </channel>
</rss>

