<?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: Create a dynamic column and extract its content in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-a-dynamic-column-and-extract-its-content/m-p/2307632#M79056</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPUoAAO"&gt;@shameer&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you read the data dynamically from a file, Talend will consider everything as string only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see the actual datatype, you can provide the schema in Input File with actual datatype and then use tWriteDynamicFields, and after that you can use your method to see the actual datatype.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Subhadip&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2019 15:02:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-27T15:02:42Z</dc:date>
    <item>
      <title>Create a dynamic column and extract its content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-a-dynamic-column-and-extract-its-content/m-p/2307631#M79055</link>
      <description>&lt;P&gt;I tried to follow the below link to understand how to use dynamic datatype and extract its content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/reader/KxVIhxtXBBFymmkkWJ~O4Q/WX1guuvSnxZg5nBBQ26LBQ" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://help.talend.com/reader/KxVIhxtXBBFymmkkWJ~O4Q/WX1guuvSnxZg5nBBQ26LBQ&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My source data (attached in the doc) which has mixed datatype (integer,varchar and date).&lt;/P&gt;
&lt;P&gt;I have designed the job as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tFileInputDelimiter (column -&amp;gt;Dynamic) --&amp;gt; tJavaRow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Used the below code in tJavaRow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dynamic columns = row3.dynamic;
 
for (int i = 0; i &amp;lt; columns.getColumnCount(); i++) {  
    DynamicMetadata columnMetadata = columns.getColumnMetadata(i);  
    System.out.println(columnMetadata.getName() + ": " + 
columns.getColumnValue(i) + "; " + &lt;STRONG&gt;columnMetadata.getType()&lt;/STRONG&gt;);
} &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;But I could find the the datatype derived from &lt;STRONG&gt;columnMetadata.getType() &lt;/STRONG&gt;of all the extracted column is showing as id_String.&lt;BR /&gt;And If i use &lt;STRONG&gt;columnMetadata.getDBType(), &lt;/STRONG&gt;then i am getting all the extracted column datatype as varchar . Output data attached in the sample.&lt;BR /&gt;&lt;BR /&gt;Can anybody let me know how to get the exact datatype (like integer ,date) for the required column, instead of varchar for all the columns.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-a-dynamic-column-and-extract-its-content/m-p/2307631#M79055</guid>
      <dc:creator>shameer1</dc:creator>
      <dc:date>2024-11-16T05:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a dynamic column and extract its content</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-a-dynamic-column-and-extract-its-content/m-p/2307632#M79056</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPUoAAO"&gt;@shameer&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you read the data dynamically from a file, Talend will consider everything as string only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see the actual datatype, you can provide the schema in Input File with actual datatype and then use tWriteDynamicFields, and after that you can use your method to see the actual datatype.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Subhadip&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 15:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-a-dynamic-column-and-extract-its-content/m-p/2307632#M79056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-27T15:02:42Z</dc:date>
    </item>
  </channel>
</rss>

