<?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: Casting Short to Integer in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Casting-Short-to-Integer/m-p/2293356#M66341</link>
    <description>Hi,&lt;BR /&gt;To reconcile the types, use a "new Integer()" constructor on the Short object.  For instance&lt;BR /&gt;Short num = new Short((short)1);&lt;BR /&gt;Integer num_i = new Integer(num);  // in tMap: "new Integer(row1.numericValue)"&lt;BR /&gt;Alternatively, you can set all type schemas to use Integer.&lt;BR /&gt;-Carl</description>
    <pubDate>Thu, 23 Jun 2011 11:26:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-23T11:26:32Z</dc:date>
    <item>
      <title>Casting Short to Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Casting-Short-to-Integer/m-p/2293355#M66340</link>
      <description>Passing an element from OracleInput to tmap I get the error; 
&lt;BR /&gt;Exception in component tMap_1 
&lt;BR /&gt;java.lang.ClassCastException: java.lang.Short cannot be cast to java.lang.Integer 
&lt;BR /&gt; at training_sh.address_0_1.Address.tMSSqlInput_1Process(Address.java:3433) 
&lt;BR /&gt; at training_sh.address_0_1.Address.tOracleConnection_2Process(Address.java:343) 
&lt;BR /&gt; at training_sh.address_0_1.Address.runJobInTOS(Address.java:4409) 
&lt;BR /&gt; at training_sh.address_0_1.Address.main(Address.java:4280) 
&lt;BR /&gt;Anyone got any idea on how I convert a small int (short) to an int such that this error message stops</description>
      <pubDate>Sat, 16 Nov 2024 12:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Casting-Short-to-Integer/m-p/2293355#M66340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Casting Short to Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Casting-Short-to-Integer/m-p/2293356#M66341</link>
      <description>Hi,&lt;BR /&gt;To reconcile the types, use a "new Integer()" constructor on the Short object.  For instance&lt;BR /&gt;Short num = new Short((short)1);&lt;BR /&gt;Integer num_i = new Integer(num);  // in tMap: "new Integer(row1.numericValue)"&lt;BR /&gt;Alternatively, you can set all type schemas to use Integer.&lt;BR /&gt;-Carl</description>
      <pubDate>Thu, 23 Jun 2011 11:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Casting-Short-to-Integer/m-p/2293356#M66341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-23T11:26:32Z</dc:date>
    </item>
  </channel>
</rss>

