<?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: tMap one to many mapping in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212762#M10271</link>
    <description>I agree with amaumont - you will need to pre-process the input file into 3 temporary outputs first. After a ThenRun you'll need to process the 3 outputs and join them on the key column(s). All of this assumes that you only need the columns defined in your output table. 
&lt;BR /&gt;If the size of your data isn't too large, then I'd suggest using the "hidden" components tArray and tArrayIn (please search the forum for information on these). You can then do the whole job "in memory". 
&lt;BR /&gt;Also please remember to be polite in the forum. Expecting an answer within 90 minutes, cross posting and bumping is not considered "forum etiquette". 
&lt;BR /&gt;c0utta</description>
    <pubDate>Wed, 30 Jan 2008 06:40:10 GMT</pubDate>
    <dc:creator>c0utta</dc:creator>
    <dc:date>2008-01-30T06:40:10Z</dc:date>
    <item>
      <title>tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212755#M10264</link>
      <description>Hi ,
&lt;BR /&gt; Can anybody tell me what is the problem with the below mapping.There is a one to many mapping between these two tables ie for a FacilityId I can have more than one Ratings,but by this mapping Iam getting only one Rating (ratingtypecode,ratingvalue) in my output</description>
      <pubDate>Sat, 16 Nov 2024 14:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212755#M10264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212756#M10265</link>
      <description>Anybody there ???????</description>
      <pubDate>Tue, 29 Jan 2008 08:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212756#M10265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-29T08:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212757#M10266</link>
      <description>sorry did not notice the o/p file properly .Iam getting the o/p in the below format .But i want the o/p as a single record (Expected o/p is at the bottom.How can i get this format??&lt;BR /&gt;Cusip 	04C9&lt;BR /&gt;MaturityDate 	20100630&lt;BR /&gt;descript 	TL A2&lt;BR /&gt;payfreq 	97208125&lt;BR /&gt;issamt 	2.25&lt;BR /&gt;OUTAMT 	0&lt;BR /&gt;MTerm 	Ba3&lt;BR /&gt;ticker 	97208125&lt;BR /&gt;Cusip 	04C9&lt;BR /&gt;MaturityDate 	20100630&lt;BR /&gt;descript 	TL A2&lt;BR /&gt;payfreq 	97208125&lt;BR /&gt;issamt 	2.25&lt;BR /&gt;OUTAMT 	0&lt;BR /&gt;STerm 	BB-&lt;BR /&gt;ticker 	97208125&lt;BR /&gt;Cusip 	04C9&lt;BR /&gt;MaturityDate 	20100630&lt;BR /&gt;descript 	TL A2&lt;BR /&gt;payfreq 	97208125&lt;BR /&gt;issamt 	2.25&lt;BR /&gt;OUTAMT 	0&lt;BR /&gt;CiRating 	5&lt;BR /&gt;ticker 	97208125&lt;BR /&gt;Expected O/p ::::::::::::::::::::::::::::::::::&lt;BR /&gt;Cusip 	04C9&lt;BR /&gt;MaturityDate 	20100630&lt;BR /&gt;descript 	TL A2&lt;BR /&gt;payfreq 	97208125&lt;BR /&gt;issamt 	2.25&lt;BR /&gt;OUTAMT 	0&lt;BR /&gt;MTerm 	Ba3&lt;BR /&gt;CiRating 	5&lt;BR /&gt;STerm 	BB-&lt;BR /&gt;ticker 	97208125</description>
      <pubDate>Tue, 29 Jan 2008 09:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212757#M10266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-29T09:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212758#M10267</link>
      <description>Hi
&lt;BR /&gt;Your request looks like this 1995.
&lt;BR /&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 29 Jan 2008 09:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212758#M10267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-29T09:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212759#M10268</link>
      <description>Hi Shong 
&lt;BR /&gt; That was my request itself 
&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; .. But that was only for a single table..There is a join between two tables here (a one two many join) .. 
&lt;BR /&gt;Please see my tMap mapping 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Abrar</description>
      <pubDate>Tue, 29 Jan 2008 09:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212759#M10268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-29T09:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212760#M10269</link>
      <description>Hi shong
&lt;BR /&gt; Is this mapping possible?
&lt;BR /&gt;Thanks
&lt;BR /&gt;Abrar</description>
      <pubDate>Tue, 29 Jan 2008 14:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212760#M10269</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2008-01-29T14:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212761#M10270</link>
      <description>I think you could process your data in two steps :
&lt;BR /&gt;1)
&lt;BR /&gt;You extract and put in 3 diffrents files your data and ONE of the fields MTerm, CiRating and CiRating.
&lt;BR /&gt;Take one fileInput (with N lines in the file), one tMap and three fileOutputs, one output for each field MTerm, CiRating and CiRating.
&lt;BR /&gt;2)
&lt;BR /&gt;Then, you read the first file as Main row, and the others as lookups. So, you will be able to merge your commons data and your specific fields.
&lt;BR /&gt;Take the three files in input of the tMap and connect one output which will contain N/3 lines at end of process.
&lt;BR /&gt;Don't forget to use a ThenRun connection to separate these two processings.
&lt;BR /&gt;Maybe someone will have an other idea ?</description>
      <pubDate>Tue, 29 Jan 2008 17:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212761#M10270</guid>
      <dc:creator>amaumont</dc:creator>
      <dc:date>2008-01-29T17:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212762#M10271</link>
      <description>I agree with amaumont - you will need to pre-process the input file into 3 temporary outputs first. After a ThenRun you'll need to process the 3 outputs and join them on the key column(s). All of this assumes that you only need the columns defined in your output table. 
&lt;BR /&gt;If the size of your data isn't too large, then I'd suggest using the "hidden" components tArray and tArrayIn (please search the forum for information on these). You can then do the whole job "in memory". 
&lt;BR /&gt;Also please remember to be polite in the forum. Expecting an answer within 90 minutes, cross posting and bumping is not considered "forum etiquette". 
&lt;BR /&gt;c0utta</description>
      <pubDate>Wed, 30 Jan 2008 06:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212762#M10271</guid>
      <dc:creator>c0utta</dc:creator>
      <dc:date>2008-01-30T06:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212763#M10272</link>
      <description>Thanks cOutta/amaumont for your suggestion. 
&lt;BR /&gt;Apologies for getting desperate to get the answer (had to submit POC to my manager about Talend) 
&lt;BR /&gt;I tried to solve this according to the below way 
&lt;BR /&gt;1.I used tFilterRow to filter rows ( I used only two rating types) into two different files. 
&lt;BR /&gt;2.Then used a tMap to map one of these files with the main query result 
&lt;BR /&gt;3.Thought of mapping the second file with the output of the tMap ,but as column names are same ,was not able to map the second file with the tMap o/p.Pls see the attached screen shot 
&lt;BR /&gt;4.Is there a way to map it this ways ?? 
&lt;BR /&gt;BTW I think I can use tArray as my data size is very big 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Abrar</description>
      <pubDate>Wed, 30 Jan 2008 10:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212763#M10272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-30T10:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212764#M10273</link>
      <description>Use ThenRun connection to process your job in two steps.</description>
      <pubDate>Wed, 30 Jan 2008 11:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212764#M10273</guid>
      <dc:creator>amaumont</dc:creator>
      <dc:date>2008-01-30T11:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212765#M10274</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;If the size of your data isn't too large, then I'd suggest using the "hidden" components tArray and tArrayIn (please search the forum for information on these). You can then do the whole job "in memory".&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I searched but did not find an detailed example for the tArrayIn usage with Java. 
&lt;BR /&gt;But what I found was 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCojKCAS" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Check-for-alternate-records-in-a-file/td-p/96709&lt;/A&gt; with an error message I?m able to reproduce. 
&lt;BR /&gt;Any suggestion on the correct usage of tArrayIn (for Java)?</description>
      <pubDate>Wed, 30 Jan 2008 17:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212765#M10274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-30T17:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212766#M10275</link>
      <description>Hi Vaiko, 
&lt;BR /&gt;I create Perl jobs, so I can't comment on the Java implementation. Nonetheless, I created the equivalent job in Java that demonstrates the basic use of tArray and tArrayIn and it fails with 
&lt;PRE&gt;Exception in component tArrayIn_1&lt;BR /&gt;java.lang.ClassCastException: p2069.p1602.p1602$row1Struct cannot be cast to p2069.p1602.p1602$ThenRunStructarray_tArray_1&lt;BR /&gt;	at p2069.p1602.p1602.tArrayIn_1Process(p1602.java:155)&lt;BR /&gt;	at p2069.p1602.p1602.tRowGenerator_1Process(p1602.java:361)&lt;BR /&gt;	at p2069.p1602.p1602.runJob(p1602.java:447)&lt;BR /&gt;	at p2069.p1602.p1602.main(p1602.java:383)&lt;/PRE&gt; 
&lt;BR /&gt;I would create an entry in the bug tracker if you want this resolved. I reported the same (or similar) bug for Perl with 
&lt;A href="http://talendforge.org/bugs/view.php?id=2431" rel="nofollow noopener noreferrer"&gt;http://talendforge.org/bugs/view.php?id=2431&lt;/A&gt; 
&lt;BR /&gt;Cheers, 
&lt;BR /&gt;c0utta</description>
      <pubDate>Thu, 31 Jan 2008 01:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212766#M10275</guid>
      <dc:creator>c0utta</dc:creator>
      <dc:date>2008-01-31T01:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212767#M10276</link>
      <description>Hi amaumont 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Use ThenRun connection to process your job in two steps.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Can you please explain me in detail as Iam new to this tool..Is the mapping which i did correct ???,if yes where should i use ThenRun.If possible pls send me a screen shot 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Syed Abrar</description>
      <pubDate>Thu, 31 Jan 2008 01:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212767#M10276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-31T01:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212768#M10277</link>
      <description>Even tried this way ..still not able to map</description>
      <pubDate>Thu, 31 Jan 2008 04:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212768#M10277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-01-31T04:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: tMap one to many mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212769#M10278</link>
      <description>In the joined schreenshot, you can see a job where intermediate data (DATES_MATCHES and ALL_BEFORE_DATES) is written in a first step and read in a second step (up to bottom) to find final results (tLogRow).</description>
      <pubDate>Thu, 31 Jan 2008 09:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-one-to-many-mapping/m-p/2212769#M10278</guid>
      <dc:creator>amaumont</dc:creator>
      <dc:date>2008-01-31T09:10:23Z</dc:date>
    </item>
  </channel>
</rss>

