<?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>question Re: How to get the desired grouping result pig in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-desired-grouping-result-pig/m-p/197776#M159827</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/122/lmartin.html" nodeid="122"&gt;@&lt;/A&gt;&lt;A href="https://community.hortonworks.com/users/17410/ingenieroandresangel.html"&gt;Andres Urrego&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You need to modify your third step like.&lt;/P&gt;&lt;P&gt;october_total_station = FOREACH october_station_gr GENERATE FLATTEN(group) , COUNT(october.s_station);&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2017 14:23:12 GMT</pubDate>
    <dc:creator>poojachawda_10</dc:creator>
    <dc:date>2017-06-06T14:23:12Z</dc:date>
    <item>
      <title>How to get the desired grouping result pig</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-desired-grouping-result-pig/m-p/197775#M159826</link>
      <description>&lt;P&gt;Hi guys, I have been struggling with my Pig code and I haven't arrived at desired result so this is why I'm knocking you guys. Well, I have a file with some information and my idea is to get a counting by reference number. so as an overview I have done:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16011-pig.png" style="width: 1057px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17807i4D678E255B9992CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16011-pig.png" alt="16011-pig.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the third step worked  but the problem is that it generates a huge tuple to include the reference number by each tuple in my grouping bag that contains the number so the output it's like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16012-pig.png" style="width: 1060px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17808i3AA77CDCE9B92E9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16012-pig.png" alt="16012-pig.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I tried the fourth step but although I got the counting list I missed the reference_number so I would like to get the same list but just once the reference code.&lt;/P&gt;&lt;P&gt;Thanks so much for your help team. &lt;A rel="user" href="https://community.cloudera.com/users/122/lmartin.html" nodeid="122" target="_blank"&gt;@Lester Martin&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:13:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-desired-grouping-result-pig/m-p/197775#M159826</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2019-08-18T06:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the desired grouping result pig</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-desired-grouping-result-pig/m-p/197776#M159827</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/122/lmartin.html" nodeid="122"&gt;@&lt;/A&gt;&lt;A href="https://community.hortonworks.com/users/17410/ingenieroandresangel.html"&gt;Andres Urrego&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You need to modify your third step like.&lt;/P&gt;&lt;P&gt;october_total_station = FOREACH october_station_gr GENERATE FLATTEN(group) , COUNT(october.s_station);&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 14:23:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-desired-grouping-result-pig/m-p/197776#M159827</guid>
      <dc:creator>poojachawda_10</dc:creator>
      <dc:date>2017-06-06T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the desired grouping result pig</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-desired-grouping-result-pig/m-p/197777#M159828</link>
      <description>&lt;P&gt;got it, I start to understand how works the grouping in Pig . actually to be sure i did:&lt;/P&gt;&lt;P&gt;october_gr_counting = FOREACH october_station_gr GENERATE group , COUNT(october)&lt;/P&gt;&lt;P&gt;thanks so much buddy.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 03:00:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-desired-grouping-result-pig/m-p/197777#M159828</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2017-06-07T03:00:54Z</dc:date>
    </item>
  </channel>
</rss>

