Hi All
I was able to get this working
Just 2 points to mention.
* If your fields you have declared chararray and you are doing SUM , it
can give that error so cast them to long or something.
* If you are having joins than you have to give full path to project the
fields
Sample example could be
sumA =
serviceTransform1.serviceLookup3::serviceLookup2::serviceLookup1::serviceFilter1::val_A;
Thanks to tutorial at
http://squarecog.wordpress.com/2010/05/11/group-operator-in-apache-pig/
It has been written by none other than Dmitriy Ryaboy
Thanks to you ,Dmitriy Ryaboy