<?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: how to create dynamic schema in Talend Studio 8 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2435912#M140428</link>
    <description>&lt;P&gt;Decimal value (say 10.50) contains a comma, so &lt;SPAN&gt;Mathematical.NUM returns False.&lt;/SPAN&gt;&amp;nbsp;You need to find another way to parse the DECIMAL value. I only tested with Mysql, the code does not cover for DB types. For Oracle 'Number' date, have you tried&amp;nbsp;&lt;SPAN&gt;columnMetadata.setType("id_Number"); ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 16:06:36 GMT</pubDate>
    <dc:creator>Shicong_Hong</dc:creator>
    <dc:date>2024-03-29T16:06:36Z</dc:date>
    <item>
      <title>how to create dynamic schema in Talend Studio 8</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2435041#M140416</link>
      <description>&lt;P&gt;I need to load 100+ files (pipe delimited) with different schemas to DB tables.&lt;/P&gt;
&lt;P&gt;I have created a mapping using Dynamic Schema and it is able to iterate the files , create table and load the data.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;But issue is , All the column data types are created as VARCHAR2 .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;What I want is that the column datatype in the output tables should be created as per data present in the input files.(say&amp;nbsp;NUMBER for values like 1,2,3 etc and DATE for values like 1/1/2020 etc).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please suggest how to make this happen.&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Talend Studio" id="qlik_TalendStudio"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 08:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2435041#M140416</guid>
      <dc:creator>Debasish</dc:creator>
      <dc:date>2024-03-27T08:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic schema in Talend Studio 8</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2435242#M140418</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to this &lt;A href="https://community.qlik.com/t5/tkb/workflowpage/tkb-id/qlik-support-knowledge-base/article-id/12118?prePageCrumb=TkbUserContributedArticlesPage" target="_self"&gt;KB article&lt;/A&gt;, have a try to access the column properties, parse and change them at runtime. Here is an example code:&lt;/P&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Dynamic columns = input_row.data;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;for (int i = 0; i &amp;lt; columns.getColumnCount(); i++)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;DynamicMetadata columnMetadata = columns.getColumnMetadata(i);&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;String col_name=columnMetadata.getName();&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;String col_value=(String)columns.getColumnValue(i);&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;//check if the value is a numeric data.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;if(Mathematical.NUM(col_value)==1){&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt; columnMetadata.setType("id_Integer");&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;//check if the value is a Date&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;if(TalendDate.isDate(col_value, "yyyy-MM-dd")==true){&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt; columnMetadata.setType("id_Date");&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt; columns.setColumnValue(i, TalendDate.parseDate("yyyy-MM-dd", col_value));&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;output_row.data=columns;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps you!&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 15:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2435242#M140418</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-03-27T15:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic schema in Talend Studio 8</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2435813#M140427</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Shicong,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for the solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It works for all scenarios except for when any column has decimal value (say 10.50) where&amp;nbsp;Mathematical.NUM returns False.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also , one observation that I have is the column type for numeric values are created as 'Integer'.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So is there a way to create the column type as Oracle DB type 'NUMBER' ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tried&amp;nbsp;columnMetadata.setDbType("Number") but it did not work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Deb&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 07:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2435813#M140427</guid>
      <dc:creator>Debasish</dc:creator>
      <dc:date>2024-03-29T07:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic schema in Talend Studio 8</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2435912#M140428</link>
      <description>&lt;P&gt;Decimal value (say 10.50) contains a comma, so &lt;SPAN&gt;Mathematical.NUM returns False.&lt;/SPAN&gt;&amp;nbsp;You need to find another way to parse the DECIMAL value. I only tested with Mysql, the code does not cover for DB types. For Oracle 'Number' date, have you tried&amp;nbsp;&lt;SPAN&gt;columnMetadata.setType("id_Number"); ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 16:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2435912#M140428</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-03-29T16:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic schema in Talend Studio 8</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2436294#M140435</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/257838"&gt;@Shicong_Hong&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;columnMetadata.setType("id_Number") did not throw any error , But the column got created as VARCHAR and not as Number.&lt;BR /&gt;So can you suggest some way for NUMBER type.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 08:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2436294#M140435</guid>
      <dc:creator>Debasish</dc:creator>
      <dc:date>2024-04-01T08:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic schema in Talend Studio 8</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2436324#M140436</link>
      <description>&lt;P&gt;I don't have an environment for testing at the moment. You can try to call the function&amp;nbsp;&lt;SPAN&gt;columnMetadata.&lt;/SPAN&gt;getType() and &lt;SPAN&gt;columnMetadata.&lt;/SPAN&gt;getDbType() to see what value you get for VARCHAR, then, call&amp;nbsp;&lt;SPAN&gt;columnMetadata.setType("xxx") or&amp;nbsp;columnMetadata.setDbType("xxx") to reset the column type.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 10:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2436324#M140436</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-04-01T10:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to create dynamic schema in Talend Studio 8</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2510701#M141881</link>
      <description>&lt;P&gt;I was interested in looking at the knowledge base article linked in the solution above,&amp;nbsp;&lt;A href="https://community.qlik.com/t5/tkb/workflowpage/tkb-id/qlik-support-knowledge-base/article-id/12118?prePageCrumb=TkbUserContributedArticlesPage" target="_blank"&gt;https://community.qlik.com/t5/tkb/workflowpage/tkb-id/qlik-support-knowledge-base/article-id/12118?prePageCrumb=TkbUserContributedArticlesPage&lt;/A&gt;&amp;nbsp;but the link seems to be broken. I've been trying to find it in the support knowledge base but it doesn't seem to be possible to search on the article-id. Any ideas what this was supposed to refer to?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 15:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-create-dynamic-schema-in-Talend-Studio-8/m-p/2510701#M141881</guid>
      <dc:creator>David_Underdown</dc:creator>
      <dc:date>2025-03-19T15:40:45Z</dc:date>
    </item>
  </channel>
</rss>

