<?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: Boolean aggregation? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Boolean-aggregation/m-p/2283688#M57527</link>
    <description>Hello, 
&lt;BR /&gt;I'm not sure to understand what you mean by "use tMap component with expression"? I already have tMap in the full job, but I don't see how they could help me here? 
&lt;BR /&gt;Here is an example of data: 
&lt;BR /&gt;input : 
&lt;BR /&gt; 
&lt;PRE&gt; filename | test_id | test_result&lt;BR /&gt;----------+---------+-------------&lt;BR /&gt;a.csv     | TEST1   | false&lt;BR /&gt;a.csv     | TEST2   | false&lt;BR /&gt;a.csv     | TEST3   | false&lt;BR /&gt;b.csv     | TEST1   | false&lt;BR /&gt;b.csv     | TEST2   | true&lt;BR /&gt;b.csv     | TEST3   | false&lt;BR /&gt;c.csv     | TEST1   | true&lt;BR /&gt;c.csv     | TEST2   | true&lt;/PRE&gt; 
&lt;BR /&gt;output (test_result is an "OR" between all test_result values for a specific file) : 
&lt;BR /&gt; 
&lt;PRE&gt; filename | test_result&lt;BR /&gt;----------+-------------&lt;BR /&gt;a.csv     | false&lt;BR /&gt;b.csv     | true&lt;BR /&gt;c.csv     | true&lt;/PRE&gt; 
&lt;BR /&gt;If I replace the Boolean values with Integer (true = 1 / false = 0), I can use a tAggregateRow with a max(test_result) and filename as key. 
&lt;BR /&gt;Regards. 
&lt;BR /&gt;Alexis</description>
    <pubDate>Fri, 25 Sep 2015 10:49:55 GMT</pubDate>
    <dc:creator>lennelei</dc:creator>
    <dc:date>2015-09-25T10:49:55Z</dc:date>
    <item>
      <title>Boolean aggregation?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Boolean-aggregation/m-p/2283686#M57525</link>
      <description>Hi, 
&lt;BR /&gt;Is there any way to use tAggregateRow or a similar component to manipulate boolean data? 
&lt;BR /&gt;For example, I've got a job that produces a row with three columns: filename (String), test_id (String), test_result (Boolean). 
&lt;BR /&gt;I would like to know for each filename, if there any true test_result to reject the file. 
&lt;BR /&gt;At first, I wanted to use this: 
&lt;BR /&gt;tFilterColumns (keeping filename and test_result columns) -- row --&amp;gt; tAggregateRow (max or sum or whatever on the test_result column using filename as key) 
&lt;BR /&gt;But it seems that tAggregateRow doesn't manipulate Boolean despite this note I found ( 
&lt;A href="https://jira.talendforge.org/browse/TDI-643" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-643&lt;/A&gt;). 
&lt;BR /&gt;Any other component for that or do I have to convert Boolean type to Integer? 
&lt;BR /&gt;Regards. 
&lt;BR /&gt;Alexis</description>
      <pubDate>Tue, 15 Sep 2015 10:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Boolean-aggregation/m-p/2283686#M57525</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2015-09-15T10:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Boolean aggregation?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Boolean-aggregation/m-p/2283687#M57526</link>
      <description>Hi,
&lt;BR /&gt;Have you tried to use tMap component with expression? What's your input source?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 21 Sep 2015 11:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Boolean-aggregation/m-p/2283687#M57526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T11:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Boolean aggregation?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Boolean-aggregation/m-p/2283688#M57527</link>
      <description>Hello, 
&lt;BR /&gt;I'm not sure to understand what you mean by "use tMap component with expression"? I already have tMap in the full job, but I don't see how they could help me here? 
&lt;BR /&gt;Here is an example of data: 
&lt;BR /&gt;input : 
&lt;BR /&gt; 
&lt;PRE&gt; filename | test_id | test_result&lt;BR /&gt;----------+---------+-------------&lt;BR /&gt;a.csv     | TEST1   | false&lt;BR /&gt;a.csv     | TEST2   | false&lt;BR /&gt;a.csv     | TEST3   | false&lt;BR /&gt;b.csv     | TEST1   | false&lt;BR /&gt;b.csv     | TEST2   | true&lt;BR /&gt;b.csv     | TEST3   | false&lt;BR /&gt;c.csv     | TEST1   | true&lt;BR /&gt;c.csv     | TEST2   | true&lt;/PRE&gt; 
&lt;BR /&gt;output (test_result is an "OR" between all test_result values for a specific file) : 
&lt;BR /&gt; 
&lt;PRE&gt; filename | test_result&lt;BR /&gt;----------+-------------&lt;BR /&gt;a.csv     | false&lt;BR /&gt;b.csv     | true&lt;BR /&gt;c.csv     | true&lt;/PRE&gt; 
&lt;BR /&gt;If I replace the Boolean values with Integer (true = 1 / false = 0), I can use a tAggregateRow with a max(test_result) and filename as key. 
&lt;BR /&gt;Regards. 
&lt;BR /&gt;Alexis</description>
      <pubDate>Fri, 25 Sep 2015 10:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Boolean-aggregation/m-p/2283688#M57527</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2015-09-25T10:49:55Z</dc:date>
    </item>
  </channel>
</rss>

