<?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: Dynamic schema table updates with computed columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-schema-table-updates-with-computed-columns/m-p/2343916#M111624</link>
    <description>&lt;P&gt;Thanks shong for your response - that's helpful.  After playing around a bit more I was able to figure out how to do what I want using tExtractDynamicFields and adding in a hard coded list of columns that I want to ignore in a tMap that follows.  But the blog shows an option that would let me play with the columns based on column properties.  I'll circle back around and try that out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For anyone else that finds this thread and may be wondering what I did, here are my steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;tDBInput to read all rows from my source table&lt;/LI&gt;&lt;LI&gt;tExtractDynamicFields lets me list out the columns I want and keep all other columns in a dynamic field&lt;/LI&gt;&lt;LI&gt;tMap let's me indicate which fields to pass through&lt;/LI&gt;&lt;LI&gt;tDBOutput to Insert or Update to my target table&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 tDBInput: - use a "Select *" to retrieve all columns&lt;/P&gt;&lt;P&gt;My schema looks like this:&lt;/P&gt;&lt;P&gt;In my example, all 140 tables have id, code &amp;amp; description.  The tDBInput component is smart enough to load those columns into my defined columns, and put "everything else" into the "other_columns" dynamic field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 In the tExtractDynamicFields component I've included my common fields, all of the potential "computed" type fields that might be present in my tables, and the "other_columns at the end.  Again, Talend is smart enough to extract those columns present in my source "other_columns" dynamic field, map them to the new column name that matches, and leave everything else in the "other_columns" field at the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3 In tMap I'm simply leaving the computed columns behind and only passing through the ones that I want.  "other_columns" has everything else for that particular table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4 Finally tDBOutput does an Insert of Update with known columns, and the unknown columns ("other" -&amp;gt; dynamic type)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps someone!  It took me a bit of research to put it together.  &lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 18:59:44 GMT</pubDate>
    <dc:creator>Papademuchos</dc:creator>
    <dc:date>2021-05-20T18:59:44Z</dc:date>
    <item>
      <title>Dynamic schema table updates with computed columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-schema-table-updates-with-computed-columns/m-p/2343914#M111622</link>
      <description>&lt;P&gt;I'm trying to move data from one database to another.  I have over 180 tables that are mostly similar, however 26 of them have different columns from the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've played around with dynamic schema and have that working, however I ran into a problem with SQL computed columns.  As expected, a computed column can't be directly inserted to or updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to exclude these columns from the dynamic column list?  Ideally I'd like to exclude them based on the computed property from SQL.  Or, I can hard-code a list of the column names if necessary... but I'm not sure how to "extract" a hard-coded list of column names from the dynamic list and exclude them from the update statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would be appreciated!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-schema-table-updates-with-computed-columns/m-p/2343914#M111622</guid>
      <dc:creator>Papademuchos</dc:creator>
      <dc:date>2024-11-16T00:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic schema table updates with computed columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-schema-table-updates-with-computed-columns/m-p/2343915#M111623</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;This &lt;A href="https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/" alt="https://www.talend.com/blog/2019/11/11/migrate-data-between-databases-one-job-using-dynamic-schema/" target="_blank"&gt;blog &lt;/A&gt;might be helpful, if you know some Java knowledge, you can hard-code to get properties of dynamic schema and update them. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 01:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-schema-table-updates-with-computed-columns/m-p/2343915#M111623</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-20T01:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic schema table updates with computed columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-schema-table-updates-with-computed-columns/m-p/2343916#M111624</link>
      <description>&lt;P&gt;Thanks shong for your response - that's helpful.  After playing around a bit more I was able to figure out how to do what I want using tExtractDynamicFields and adding in a hard coded list of columns that I want to ignore in a tMap that follows.  But the blog shows an option that would let me play with the columns based on column properties.  I'll circle back around and try that out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For anyone else that finds this thread and may be wondering what I did, here are my steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;tDBInput to read all rows from my source table&lt;/LI&gt;&lt;LI&gt;tExtractDynamicFields lets me list out the columns I want and keep all other columns in a dynamic field&lt;/LI&gt;&lt;LI&gt;tMap let's me indicate which fields to pass through&lt;/LI&gt;&lt;LI&gt;tDBOutput to Insert or Update to my target table&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 tDBInput: - use a "Select *" to retrieve all columns&lt;/P&gt;&lt;P&gt;My schema looks like this:&lt;/P&gt;&lt;P&gt;In my example, all 140 tables have id, code &amp;amp; description.  The tDBInput component is smart enough to load those columns into my defined columns, and put "everything else" into the "other_columns" dynamic field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 In the tExtractDynamicFields component I've included my common fields, all of the potential "computed" type fields that might be present in my tables, and the "other_columns at the end.  Again, Talend is smart enough to extract those columns present in my source "other_columns" dynamic field, map them to the new column name that matches, and leave everything else in the "other_columns" field at the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3 In tMap I'm simply leaving the computed columns behind and only passing through the ones that I want.  "other_columns" has everything else for that particular table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4 Finally tDBOutput does an Insert of Update with known columns, and the unknown columns ("other" -&amp;gt; dynamic type)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps someone!  It took me a bit of research to put it together.  &lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 18:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-schema-table-updates-with-computed-columns/m-p/2343916#M111624</guid>
      <dc:creator>Papademuchos</dc:creator>
      <dc:date>2021-05-20T18:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic schema table updates with computed columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-schema-table-updates-with-computed-columns/m-p/2343917#M111625</link>
      <description>&lt;P&gt;Great, thanks for sharing detailed steps to community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 06:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-schema-table-updates-with-computed-columns/m-p/2343917#M111625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-21T06:46:24Z</dc:date>
    </item>
  </channel>
</rss>

