Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> avoiding Group by or filter


+
Preeti Gupta 2013-03-04, 23:50
+
Prashant Kommireddi 2013-03-05, 04:30
+
Preeti Gupta 2013-03-05, 04:36
+
Jonathan Coveney 2013-03-05, 11:14
+
Preeti Gupta 2013-03-05, 15:10
Copy link to this message
-
Re: avoiding Group by or filter
Yes. You can use any eval function such as SUM or AVG as long as your data is in the format (item1, … , item, {(tup1), …(tupn)}). See http://pig.apache.org/docs/r0.10.0/func.html#eval-functions for more info.

On Mar 4, 2013, at 3:50 PM, Preeti Gupta wrote:

> Hello,
>
> Can I compute SUM or AVG without using GROUPBY OR FILTER?

+
Jonathan Coveney 2013-03-05, 22:06
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB