Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion BagSplit Question

Received: by 10.52.155.240 with SMTP id vz16mr13295864vdb.3.1334160913967;
        Wed, 11 Apr 2012 09:15:13 -0700 (PDT)
X-BeenThere: datafu@googlegroups.com
Received: by 10.220.240.129 with SMTP id la1ls534745vcb.3.gmail; Wed, 11 Apr
 2012 09:15:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.92.169 with SMTP id cn9mr1387153vdb.14.1334160913706; Wed,
 11 Apr 2012 09:15:13 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
 james.newha...@gmail.com designates internal as permitted sender)
 smtp.mail=james.newha...@gmail.com; dkim=pass
 header...@gmail.com
Received: by er9g2000vbb.googlegroups.com with HTTP; Wed, 11 Apr 2012 09:15:13
 -0700 (PDT)
Date: Wed, 11 Apr 2012 09:15:13 -0700 (PDT)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3)
 AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.83 Safari/535.11,gzip(gfe)
Message-ID: <3cb42b49-5f90-4a0b-8e86-03d0c4e22206@er9g2000vbb.googlegroups.com>
Subject: BagSplit Question
From: James Newhaven <james.newha...@gmail.com>
To: DataFu <datafu@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

I've used BagSplit which generates a relation with the following
schema:

{datafu.pig.bags.bagsplit_J_1979: {(data: {(A::group:
chararray,A::tagcount: long)})}}

I'm pretty new to Pig, what I want to do now, is access each bag
generated from the split and run the AVG function on the tuples inside
the bag.

Is someone able to tell me the correct pig syntax do this?

Thanks,