pig-user  

Re: [PIG LATIN] how to get the size of a data bag

Arun C Murthy
Fri, 18 Jul 2008 16:41:06 -0700

Charles,

The right forum for Pig is pig-user@incubator.apache.org, I'm redirecting you there... good luck!

Arun

On Jul 18, 2008, at 11:51 AM, charles du wrote:

Hi:

Just start learning hadoop and pig latin. How can I get the number of
elements in a data bag?

For example, a data bag like follow has four elements.
  B= {1, 2, 3, 5}

I tried C = COUNT(B), it did not work. Thanks.

--
tp

  • Re: [PIG LATIN] how to get the size of a data bag Arun C Murthy