<?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 Remove field from dynamic schema based on data type in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Remove-field-from-dynamic-schema-based-on-data-type/m-p/2334491#M103157</link>
    <description>&lt;P&gt;Hi Folks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using Dynamic schema to read table from SQL Server, and I want to remove all "timestamp" data types.&lt;/P&gt;
&lt;P&gt;Do you have suggestion on how to loop thru the dynamic schema and modify it at run time?&lt;/P&gt;
&lt;P&gt;For example, can I throw a tJavaRow between my source and target, &amp;amp; remove the timestamp column?&lt;/P&gt;
&lt;P&gt;If so, can you please post a sample?&lt;/P&gt;
&lt;P&gt;thanks!!&lt;/P&gt;</description>
    <pubDate>Fri, 18 May 2018 20:39:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-18T20:39:47Z</dc:date>
    <item>
      <title>Remove field from dynamic schema based on data type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Remove-field-from-dynamic-schema-based-on-data-type/m-p/2334491#M103157</link>
      <description>&lt;P&gt;Hi Folks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using Dynamic schema to read table from SQL Server, and I want to remove all "timestamp" data types.&lt;/P&gt;
&lt;P&gt;Do you have suggestion on how to loop thru the dynamic schema and modify it at run time?&lt;/P&gt;
&lt;P&gt;For example, can I throw a tJavaRow between my source and target, &amp;amp; remove the timestamp column?&lt;/P&gt;
&lt;P&gt;If so, can you please post a sample?&lt;/P&gt;
&lt;P&gt;thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 20:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Remove-field-from-dynamic-schema-based-on-data-type/m-p/2334491#M103157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-18T20:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field from dynamic schema based on data type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Remove-field-from-dynamic-schema-based-on-data-type/m-p/2334492#M103158</link>
      <description>&lt;P&gt;I have the same problem! Trying to keep a dynamic job as simple as possible so if an existing component could conditionally remove columns based on data type that'd be ideal.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 21:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Remove-field-from-dynamic-schema-based-on-data-type/m-p/2334492#M103158</guid>
      <dc:creator>GerryD</dc:creator>
      <dc:date>2018-05-18T21:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field from dynamic schema based on data type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Remove-field-from-dynamic-schema-based-on-data-type/m-p/2334493#M103159</link>
      <description>&lt;P&gt;Well, I was finally able to get around my issue by increasing the size of the field in the dynamic column with this (should be able to do other things like removing the column or changing types etc similarly):&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dynamic columns = row1.newColumn;&lt;BR /&gt;&lt;BR /&gt;for (int i = 0; i &amp;lt; columns.getColumnCount(); i++) {&lt;BR /&gt;DynamicMetadata columnMetadata = columns.getColumnMetadata(i);&lt;BR /&gt;if (columnMetadata.getDbType() == "timestamp" )&lt;BR /&gt;{&lt;BR /&gt;columnMetadata.setLength(50);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;output_row.newColumn = columns;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 00:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Remove-field-from-dynamic-schema-based-on-data-type/m-p/2334493#M103159</guid>
      <dc:creator>GerryD</dc:creator>
      <dc:date>2018-05-22T00:30:19Z</dc:date>
    </item>
  </channel>
</rss>

