<?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 Mapping columns selected via a tMysqlRow component. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Mapping-columns-selected-via-a-tMysqlRow-component/m-p/2297389#M69971</link>
    <description>Hi, 
&lt;BR /&gt;I am trying to do something pretty straightforward and am not quite sure how to do it. 
&lt;BR /&gt;I have a job that is selecting input data using a MysqlRow type component and I want to map a couple columns from that select statement to 
&lt;BR /&gt;an output table (also a MySQL table). My challenge is how to map the two columns from the select statement to the corresponding output 
&lt;BR /&gt;table. Below are some more details to fill this out. 
&lt;BR /&gt;-&amp;gt; There is no database schema definition for the data being selected by the MysqlRow component. The MysqlRow component is a complex 
&lt;BR /&gt; sql statement that pulls data from a couple of tables and due to the nature of the sql code, a tMySQLInput component will not meet the 
&lt;BR /&gt; needs of the what is being attempted. 
&lt;BR /&gt;-&amp;gt; I tried using a tMap component for the above mentioned, but cannot get it to work due to there being no input schema. When I manually 
&lt;BR /&gt; added the two columns to the tMap component on the input/source section, an error was thrown stating that it could not find the two 
&lt;BR /&gt; columns. 
&lt;BR /&gt; When I looked at the generated java code, it read as row1.fieldA = null.fieldA, row.fieldB = null.fieldB. Looking at this, the job is not 
&lt;BR /&gt; resolving to the manually built schema that is defined on the MysqlRow component. 
&lt;BR /&gt;I am apparently missing something but do not see it. 
&lt;BR /&gt;Thank you in advance. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Tom</description>
    <pubDate>Sat, 16 Nov 2024 12:25:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:25:31Z</dc:date>
    <item>
      <title>Mapping columns selected via a tMysqlRow component.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-columns-selected-via-a-tMysqlRow-component/m-p/2297389#M69971</link>
      <description>Hi, 
&lt;BR /&gt;I am trying to do something pretty straightforward and am not quite sure how to do it. 
&lt;BR /&gt;I have a job that is selecting input data using a MysqlRow type component and I want to map a couple columns from that select statement to 
&lt;BR /&gt;an output table (also a MySQL table). My challenge is how to map the two columns from the select statement to the corresponding output 
&lt;BR /&gt;table. Below are some more details to fill this out. 
&lt;BR /&gt;-&amp;gt; There is no database schema definition for the data being selected by the MysqlRow component. The MysqlRow component is a complex 
&lt;BR /&gt; sql statement that pulls data from a couple of tables and due to the nature of the sql code, a tMySQLInput component will not meet the 
&lt;BR /&gt; needs of the what is being attempted. 
&lt;BR /&gt;-&amp;gt; I tried using a tMap component for the above mentioned, but cannot get it to work due to there being no input schema. When I manually 
&lt;BR /&gt; added the two columns to the tMap component on the input/source section, an error was thrown stating that it could not find the two 
&lt;BR /&gt; columns. 
&lt;BR /&gt; When I looked at the generated java code, it read as row1.fieldA = null.fieldA, row.fieldB = null.fieldB. Looking at this, the job is not 
&lt;BR /&gt; resolving to the manually built schema that is defined on the MysqlRow component. 
&lt;BR /&gt;I am apparently missing something but do not see it. 
&lt;BR /&gt;Thank you in advance. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Tom</description>
      <pubDate>Sat, 16 Nov 2024 12:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-columns-selected-via-a-tMysqlRow-component/m-p/2297389#M69971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping columns selected via a tMysqlRow component.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-columns-selected-via-a-tMysqlRow-component/m-p/2297390#M69972</link>
      <description>tgrady, 
&lt;BR /&gt;I don't see why your select statement wouldn't work in a tMysqlInput component. You can just paste your sql query in there and it will give the result of the select statement. 
&lt;BR /&gt;Why doesn't your select statement have a schema? It's a select so it will return columns..? 
&lt;BR /&gt;Enlighten me if I don't understand what you mean. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 27 Jan 2012 15:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-columns-selected-via-a-tMysqlRow-component/m-p/2297390#M69972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-27T15:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping columns selected via a tMysqlRow component.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mapping-columns-selected-via-a-tMysqlRow-component/m-p/2297391#M69973</link>
      <description>Hi MPA,
&lt;BR /&gt;Just getting back into the forum and thanks for your response. Maybe I am over complicating it? 
&lt;BR /&gt;As you will see, the below select is a select statement that consists of four select statements and uses the 'union all' clause to bring the 
&lt;BR /&gt;data together from. I was not thinking that a tMysqlInput component would be the right component for this. 
&lt;BR /&gt;Regarding a schema for the select... I created a built in schema on the component but that did not work due to the job throwing an error
&lt;BR /&gt;stating that the rqfeId and rsfeId fields could not be resolved. Looking at the code revealed that the job has the source table for the ids as 
&lt;BR /&gt;null - hence the unable to resolve error. Can a database schema be created to be based over two tables? 
&lt;BR /&gt;SELECT DISTINCT rqfeId, rsfeId
&lt;BR /&gt; FROM (SELECT rqfe.id AS rqfeId, rsde.id AS rsfeId
&lt;BR /&gt; FROM rqfe JOIN rsde ON (rqfe.numberId = rsde.numberId)
&lt;BR /&gt; UNION ALL
&lt;BR /&gt; SELECT id AS rqfeId, 0 AS rsfeId
&lt;BR /&gt; FROM rqfe
&lt;BR /&gt; WHERE NOT EXISTS
&lt;BR /&gt; (SELECT numberId
&lt;BR /&gt; FROM rsde
&lt;BR /&gt; WHERE rsde.numberId = rqfe.numberId)
&lt;BR /&gt; UNION ALL
&lt;BR /&gt; SELECT 0 AS rqfeId, id AS rsfeId
&lt;BR /&gt; FROM rsfe
&lt;BR /&gt; WHERE NOT EXISTS
&lt;BR /&gt; (SELECT numberId
&lt;BR /&gt; FROM rqde
&lt;BR /&gt; WHERE rqde.numberId = rsfe.numberId)
&lt;BR /&gt; UNION ALL
&lt;BR /&gt; SELECT rqde.id AS rqfeId, rsfe.id AS rsfeId
&lt;BR /&gt; FROM rsfe 
&lt;BR /&gt; JOIN rqde ON (rsfe.numberId = rqde.numberId))
&lt;BR /&gt;
&lt;BR /&gt;Any input on this is appreciated. In the mean time, I'll work with the tMysqlInput component to see what that yields.
&lt;BR /&gt;Thanks and have a great day.
&lt;BR /&gt;Tom</description>
      <pubDate>Thu, 02 Feb 2012 12:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mapping-columns-selected-via-a-tMysqlRow-component/m-p/2297391#M69973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-02T12:18:44Z</dc:date>
    </item>
  </channel>
</rss>

