<?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: [resolved] Transitivity Problem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361823#M126092</link>
    <description>i'm flabbergasted ! 
&lt;BR /&gt;It's exactly what i asked for ! 
&lt;BR /&gt;Or... almost. 
&lt;BR /&gt;You provided me with : 
&lt;BR /&gt;Group1 Cp1;Cp2;Cp3;Cp4 
&lt;BR /&gt;Group2 Cp5;Cp6 
&lt;BR /&gt;Group3 Cp7;Cp8 
&lt;BR /&gt;And i would like to have 
&lt;BR /&gt;Group1 Cp1 
&lt;BR /&gt;Group1 Cp2 
&lt;BR /&gt;Group1 Cp3 
&lt;BR /&gt;Group1 Cp4 
&lt;BR /&gt;Group2 Cp5 
&lt;BR /&gt;Group2 Cp6 
&lt;BR /&gt;Group3 Cp7 
&lt;BR /&gt;Group3 Cp8 
&lt;BR /&gt;I will try to modify the stage to be able to do what i want. 
&lt;BR /&gt;Problem is i'm VERY new to talend. I had a talend developer last week to work on this project but he is now gone on another and i have to work this out ofr myself and what he left me. 
&lt;BR /&gt;I'm a DataStage expert so i'm not new with ETLs... but i don't know JAVA at all and he explained me how Talend works in only a couple of hours... 
&lt;BR /&gt;So i'm learning... and i'm learning the hard way 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;So many many thanks for you't most welcomed help ! 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Amaranthe.</description>
    <pubDate>Tue, 13 Aug 2013 10:17:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-13T10:17:13Z</dc:date>
    <item>
      <title>[resolved] Transitivity Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361819#M126088</link>
      <description>Hi there,&lt;BR /&gt;I have a MySQL Table with potential Duplicates in it.&lt;BR /&gt;Each record is a couple of Id like*&lt;BR /&gt;Cp1 Cp2&lt;BR /&gt;Cp1 Cp3&lt;BR /&gt;Cp2 Cp4&lt;BR /&gt;Cp5 Cp6&lt;BR /&gt;( ... )&lt;BR /&gt;I'm assured that each couple is uniq.&lt;BR /&gt;I would like to have, in output, a table with an unique Id for each Duplicate Group... and a Row for each Cp.&lt;BR /&gt;So with the former example, i would like to have in output&lt;BR /&gt;Group1 Cp1&lt;BR /&gt;Group1 Cp2&lt;BR /&gt;Group1 Cp3&lt;BR /&gt;Group1 Cp4&lt;BR /&gt;Group2 Cp5&lt;BR /&gt;Group2 Cp6&lt;BR /&gt;I sorted my first table by Cp1 then Cp2 and tried to work with Vars to Create my Groups...&lt;BR /&gt;The problem i have is that i would like to ba able to make a lookup on the same table i'm writing in... just to be sure i don't write two time the same Cp...&lt;BR /&gt;Is this at all possible ?&lt;BR /&gt;Or do you have a better way to solve this problem ?&lt;BR /&gt;Thanks for reading me and for providing me any input on this case.&lt;BR /&gt;Regards,&lt;BR /&gt;Amaranthe.</description>
      <pubDate>Mon, 12 Aug 2013 15:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361819#M126088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-12T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Transitivity Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361820#M126089</link>
      <description>Hi 
&lt;BR /&gt;One quick question, based on the input example, why CP1, 2, 3, and 4 are grouped into group1? and CP5, 6 are grouped into group2? 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 12 Aug 2013 15:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361820#M126089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-12T15:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Transitivity Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361821#M126090</link>
      <description>I want to have in output Groups of potential Duplicates...&lt;BR /&gt;So if&lt;BR /&gt;Cp1 Cp2&lt;BR /&gt;Cp1 Cp3&lt;BR /&gt;Cp2 Cp4&lt;BR /&gt;Cp5 Cp6&lt;BR /&gt;Cp1 is a Dup of Cp2&lt;BR /&gt;Cp1 is a Dup of Cp3&lt;BR /&gt;So Cp1, Cp2 &amp;amp; Cp3 are to be in the same potential duplicates group...&lt;BR /&gt;And so on...&lt;BR /&gt;Hope that i answered your question.</description>
      <pubDate>Mon, 12 Aug 2013 15:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361821#M126090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-12T15:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Transitivity Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361822#M126091</link>
      <description>I had fun with this one and learnt a bit more Java myself! 
&lt;BR /&gt;tFixedFlowInput_2 is just to create the flow of ID pairs. You would replace with tMysqlInput. 
&lt;BR /&gt; 
&lt;U&gt;tJavaFlex Start code&lt;/U&gt; 
&lt;BR /&gt;java.util.ArrayList&amp;lt;String&amp;gt; list1 = new java.util.ArrayList(); 
&lt;BR /&gt;String group = ""; 
&lt;BR /&gt;Boolean incl1 = false; 
&lt;BR /&gt;Boolean incl2 = false; 
&lt;BR /&gt; 
&lt;U&gt;tJavaFlex Main code&lt;/U&gt; 
&lt;BR /&gt;for (int i=0; i&amp;lt;list1.size(); i++) { 
&lt;BR /&gt; group = list1.get(i); 
&lt;BR /&gt; incl1 = group.contains(row4.ID1); 
&lt;BR /&gt; incl2 = group.contains(row4.ID2); 
&lt;BR /&gt; if (incl1) { 
&lt;BR /&gt; if (!incl2) { 
&lt;BR /&gt; group += "," + row4.ID2; 
&lt;BR /&gt; list1.set(i,group); 
&lt;BR /&gt; break; 
&lt;BR /&gt; } 
&lt;BR /&gt; } else if (incl2) { 
&lt;BR /&gt; group += "," + row4.ID1; 
&lt;BR /&gt; list1.set(i,group); 
&lt;BR /&gt; break; 
&lt;BR /&gt; } 
&lt;BR /&gt;} 
&lt;BR /&gt;if (!incl1 &amp;amp;&amp;amp; !incl2) { 
&lt;BR /&gt; list1.add("" + row4.ID1 + "," + row4.ID2); 
&lt;BR /&gt;} 
&lt;BR /&gt; 
&lt;U&gt;tJavaFlex End code&lt;/U&gt; 
&lt;BR /&gt;globalMap.put("list", list1); 
&lt;BR /&gt; 
&lt;U&gt;tLoop&lt;/U&gt; 
&lt;BR /&gt;From: 0 
&lt;BR /&gt;To: ((java.util.ArrayList)globalMap.get("list")).size()-1 
&lt;BR /&gt;Step: 1 
&lt;BR /&gt; 
&lt;U&gt;tFixedFlowInput_3&lt;/U&gt; 
&lt;BR /&gt;GroupID = "Group"+(Integer)globalMap.get("tLoop_1_CURRENT_ITERATION") 
&lt;BR /&gt;GroupValue = ((java.util.ArrayList&amp;lt;String&amp;gt;)globalMap.get("list")).get((Integer)globalMap.get("tLoop_1_CURRENT_VALUE")) 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEuT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156609i00C8E9B9A0DF0A4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEuT.png" alt="0683p000009MEuT.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 13 Aug 2013 04:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361822#M126091</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-08-13T04:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Transitivity Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361823#M126092</link>
      <description>i'm flabbergasted ! 
&lt;BR /&gt;It's exactly what i asked for ! 
&lt;BR /&gt;Or... almost. 
&lt;BR /&gt;You provided me with : 
&lt;BR /&gt;Group1 Cp1;Cp2;Cp3;Cp4 
&lt;BR /&gt;Group2 Cp5;Cp6 
&lt;BR /&gt;Group3 Cp7;Cp8 
&lt;BR /&gt;And i would like to have 
&lt;BR /&gt;Group1 Cp1 
&lt;BR /&gt;Group1 Cp2 
&lt;BR /&gt;Group1 Cp3 
&lt;BR /&gt;Group1 Cp4 
&lt;BR /&gt;Group2 Cp5 
&lt;BR /&gt;Group2 Cp6 
&lt;BR /&gt;Group3 Cp7 
&lt;BR /&gt;Group3 Cp8 
&lt;BR /&gt;I will try to modify the stage to be able to do what i want. 
&lt;BR /&gt;Problem is i'm VERY new to talend. I had a talend developer last week to work on this project but he is now gone on another and i have to work this out ofr myself and what he left me. 
&lt;BR /&gt;I'm a DataStage expert so i'm not new with ETLs... but i don't know JAVA at all and he explained me how Talend works in only a couple of hours... 
&lt;BR /&gt;So i'm learning... and i'm learning the hard way 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;So many many thanks for you't most welcomed help ! 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Amaranthe.</description>
      <pubDate>Tue, 13 Aug 2013 10:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361823#M126092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-13T10:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Transitivity Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361824#M126093</link>
      <description>It seems you've not followed exactly what I suggested, apparently using semi-colons to append the values in tJavaFlex and comma in tNormalize, so tNormalize has not done anything. It works exactly as you want for me. 
&lt;BR /&gt;What you want is quite a complex requirement, requiring a significant amount of Java. Normally, most Talend jobs should not need a tJavaFlex or ArrayLists.</description>
      <pubDate>Tue, 13 Aug 2013 10:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361824#M126093</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-08-13T10:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Transitivity Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361825#M126094</link>
      <description>Thanks for being so rapid to answer.
&lt;BR /&gt;I'm using comma in the tJavaFlex. I only modified your code to replace Id1 &amp;amp; ID2 by the real name of the fields in my table.
&lt;BR /&gt;I'm also using a "," delimiter in the tNormalize.
&lt;BR /&gt;What i get in the tlogrow is :
&lt;BR /&gt;GroupID GroupValue
&lt;BR /&gt;Group1|CMP-000030306-EV2310,CMP-000026251-FR3897
&lt;BR /&gt;Group2|CMP-000026250-FR6731,CMP-000029469-EL0010,CMP-000029469-EL2007,CMP-000029469-EL0011,CMP-000029469-EL0012,CMP-000029469-EL0014,
&lt;BR /&gt;Group3|CMP-000026264-EV0253,CMP-000006790-FR0111
&lt;BR /&gt;Group4|CMP-000029469-EL0020,CMP-000029469-EL0021,CMP-000029469-EL0022
&lt;BR /&gt;Group5|CMP-000262549-FR4853,CMP-000032238-JVFDOV
&lt;BR /&gt;Group6|CMP-000002092-D01853,CMP-000030794-RQO6V1
&lt;BR /&gt;I'm sorry if don't understand something obvious but as i explained it's my first dev on Talend... the developper who left let me the very last job to develop on my own and yes, i know it's not the easier to start with.
&lt;BR /&gt;Regards 
&lt;BR /&gt;Amaranthe.</description>
      <pubDate>Tue, 13 Aug 2013 10:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361825#M126094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-13T10:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Transitivity Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361826#M126095</link>
      <description>Sorry i understood my mistake !!!!
&lt;BR /&gt;I normalized on the Id and not on the Value !
&lt;BR /&gt;It now works exactly as i want !!
&lt;BR /&gt;Many Many Thanks.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Amaranthe.</description>
      <pubDate>Tue, 13 Aug 2013 10:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Transitivity-Problem/m-p/2361826#M126095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-13T10:56:08Z</dc:date>
    </item>
  </channel>
</rss>

