<?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 Sort the data in the file which is having different schema. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Sort-the-data-in-the-file-which-is-having-different-schema/m-p/2355904#M121544</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I need to sort the data in the file which is having different schema. Schemas we know only on run time. First 4 columns are same. We can not define dynamic schema because it's taking the structure of first row data and appending delimiter to other rows which is having less columns. ​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Could any one help me here. ​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Need to sort the data having different schema. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Banupriya​&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:56:02 GMT</pubDate>
    <dc:creator>Banupriya</dc:creator>
    <dc:date>2024-11-15T23:56:02Z</dc:date>
    <item>
      <title>Sort the data in the file which is having different schema.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sort-the-data-in-the-file-which-is-having-different-schema/m-p/2355904#M121544</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I need to sort the data in the file which is having different schema. Schemas we know only on run time. First 4 columns are same. We can not define dynamic schema because it's taking the structure of first row data and appending delimiter to other rows which is having less columns. ​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Could any one help me here. ​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Need to sort the data having different schema. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Banupriya​&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sort-the-data-in-the-file-which-is-having-different-schema/m-p/2355904#M121544</guid>
      <dc:creator>Banupriya</dc:creator>
      <dc:date>2024-11-15T23:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sort the data in the file which is having different schema.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sort-the-data-in-the-file-which-is-having-different-schema/m-p/2355905#M121545</link>
      <description>&lt;P&gt;Hi, maybe you can read data row by row in one field then&lt;/P&gt;&lt;P&gt;you parse with a delimiter to see the number of field and you drive data in function to that.&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 07:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sort-the-data-in-the-file-which-is-having-different-schema/m-p/2355905#M121545</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-20T07:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sort the data in the file which is having different schema.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sort-the-data-in-the-file-which-is-having-different-schema/m-p/2355906#M121546</link>
      <description>&lt;P&gt;Thank you for the reply. We are not sure how many columns we are going to get in the file. so we can not define a field counts anywhere. ​&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 08:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sort-the-data-in-the-file-which-is-having-different-schema/m-p/2355906#M121546</guid>
      <dc:creator>Banupriya</dc:creator>
      <dc:date>2021-07-20T08:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sort the data in the file which is having different schema.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Sort-the-data-in-the-file-which-is-having-different-schema/m-p/2355907#M121547</link>
      <description>&lt;P&gt;dynamic shema allow you to do that, you have just to select only one otuput field with dynamic type on the input component, then you can do what you want with :&lt;/P&gt;&lt;P&gt;count the field numbers, add column,supress suppress ,shuffle the column etc.&lt;/P&gt;&lt;P&gt;here a code example to get all column name and values of dynamic object :&lt;/P&gt;&lt;P&gt;if the output field of your input component is for example data (type dynamic):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dynamic columns = row1.data;&lt;/P&gt;&lt;P&gt;for (int i = 0; i &amp;lt; columns.getColumnCount(); i++) &lt;/P&gt;&lt;P&gt; { &lt;/P&gt;&lt;P&gt; DynamicMetadata columnMetadata = columns.getColumnMetadata(i);&lt;/P&gt;&lt;P&gt; String inp_col=columnMetadata.getName().toString();&lt;/P&gt;&lt;P&gt; String col_val=(String)row1.data.getColumnValue(inp_col);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;do you have a header in the file or each row have is own schema ?&lt;/P&gt;&lt;P&gt;maybe you could send an exemple of file you have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 12:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Sort-the-data-in-the-file-which-is-having-different-schema/m-p/2355907#M121547</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-20T12:54:12Z</dc:date>
    </item>
  </channel>
</rss>

