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 >> RowCount


I've been doing the following to count rows:

x = foreach (group foo all) generate COUNT($1);

Is that the current best practice?  If so, would there be interest in a patch that simply did: x = rowcount(foo) ?  I find myself doing sanity checks on scripts a fair amount and am starting to wish for something less verbose.

-Grant

--------------------------
Grant Ingersoll
+
Andrew Clegg 2011-07-26, 14:26
+
Daniel Dai 2011-07-29, 21:04
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