<?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 Customize oracle type mappings in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Customize-oracle-type-mappings/m-p/2234703#M23969</link>
    <description>Hi,&amp;nbsp;
&lt;BR /&gt;We have oracle 12 and all columns are defined as number.&amp;nbsp;
&lt;BR /&gt;When we import the tables into the metadata of Talend, Number columns are imported as decimal by default.&amp;nbsp;
&lt;BR /&gt;What we would like to do is to customize the mappings accordning to the precision.&amp;nbsp;
&lt;BR /&gt;In other words, if the type is Decimal(10,0), we want it to be autmatically detected as Bigint. But if the type is Decimal(10,6), we want it to be imported as double.&amp;nbsp;
&lt;BR /&gt;I tried editing mapping_Oracle.xml but then it started to map all Decimals to integer for whatever precision.&amp;nbsp;
&lt;BR /&gt;
&lt;PRE&gt;	&amp;lt;talendType type="id_Integer"&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="INT" default="true"/&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="INTEGER"/&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="PLS_INTEGER"/&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NUMBER" defaultLength="20" defaultPrecision="0" ignoreLen="false" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;					&amp;lt;dbType type="NUMBER" defaultLength="1" defaultPrecision="0" ignoreLen="false" /&amp;gt;&lt;BR /&gt;				&amp;lt;/talendType&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt; 
&lt;BR /&gt;
&lt;PRE&gt;&amp;lt;talendType type="id_Double"&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="DOUBLE PRECISION" default="true"/&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="BINARY_DOUBLE"/&amp;gt;					&lt;BR /&gt;&amp;nbsp; &amp;nbsp;					&amp;lt;dbType type="NUMBER" defaultLength="10" defaultPrecision="6" ignoreLen="false" /&amp;gt;&lt;BR /&gt;				&amp;lt;/talendType&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Jan 2016 08:52:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-08T08:52:00Z</dc:date>
    <item>
      <title>Customize oracle type mappings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Customize-oracle-type-mappings/m-p/2234703#M23969</link>
      <description>Hi,&amp;nbsp;
&lt;BR /&gt;We have oracle 12 and all columns are defined as number.&amp;nbsp;
&lt;BR /&gt;When we import the tables into the metadata of Talend, Number columns are imported as decimal by default.&amp;nbsp;
&lt;BR /&gt;What we would like to do is to customize the mappings accordning to the precision.&amp;nbsp;
&lt;BR /&gt;In other words, if the type is Decimal(10,0), we want it to be autmatically detected as Bigint. But if the type is Decimal(10,6), we want it to be imported as double.&amp;nbsp;
&lt;BR /&gt;I tried editing mapping_Oracle.xml but then it started to map all Decimals to integer for whatever precision.&amp;nbsp;
&lt;BR /&gt;
&lt;PRE&gt;	&amp;lt;talendType type="id_Integer"&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="INT" default="true"/&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="INTEGER"/&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="PLS_INTEGER"/&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NUMBER" defaultLength="20" defaultPrecision="0" ignoreLen="false" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;					&amp;lt;dbType type="NUMBER" defaultLength="1" defaultPrecision="0" ignoreLen="false" /&amp;gt;&lt;BR /&gt;				&amp;lt;/talendType&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt; 
&lt;BR /&gt;
&lt;PRE&gt;&amp;lt;talendType type="id_Double"&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="DOUBLE PRECISION" default="true"/&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="BINARY_DOUBLE"/&amp;gt;					&lt;BR /&gt;&amp;nbsp; &amp;nbsp;					&amp;lt;dbType type="NUMBER" defaultLength="10" defaultPrecision="6" ignoreLen="false" /&amp;gt;&lt;BR /&gt;				&amp;lt;/talendType&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Jan 2016 08:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Customize-oracle-type-mappings/m-p/2234703#M23969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-08T08:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Customize oracle type mappings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Customize-oracle-type-mappings/m-p/2234704#M23970</link>
      <description>Hi,&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;About the data type mapping between Talend type and db type, you can go to Windows--&amp;gt;Preference--&amp;gt;Talend--&amp;gt;Specific Settings--&amp;gt;Metadata of Talend Type and see mapping_DB.xml&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 13 Jan 2016 08:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Customize-oracle-type-mappings/m-p/2234704#M23970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-13T08:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Customize oracle type mappings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Customize-oracle-type-mappings/m-p/2234705#M23971</link>
      <description>Hello,&amp;nbsp;&lt;BR /&gt;Thanks for your reply.&amp;nbsp;&lt;BR /&gt;Actually the piece of the xml that I've attached is taken from mapping_oracle.&amp;nbsp;&lt;BR /&gt;But the problem is that I cannot change the mapping based on the precision of the decimal. I want talend map the Decimal(10,0) to bigint and Decimal(10,6) as double.&amp;nbsp;</description>
      <pubDate>Wed, 13 Jan 2016 09:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Customize-oracle-type-mappings/m-p/2234705#M23971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-13T09:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Customize oracle type mappings</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Customize-oracle-type-mappings/m-p/2234706#M23972</link>
      <description>Hi murat.migdisoglu, 
&lt;BR /&gt;Have you solved the problem? I want exact same thing for Exasol; 
&lt;BR /&gt;Decimal(18,0) as Integer 
&lt;BR /&gt;Decimal(9,0) as Smallint 
&lt;BR /&gt;Decimal(p,s) as Decimal --that means when the (p,s) are not (18,0) nor (9,0). 
&lt;BR /&gt;Best, 
&lt;BR /&gt;Tadej</description>
      <pubDate>Thu, 16 Mar 2017 09:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Customize-oracle-type-mappings/m-p/2234706#M23972</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2017-03-16T09:45:13Z</dc:date>
    </item>
  </channel>
</rss>

