Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig, mail # user - RowCount


Copy link to this message
-
RowCount
Grant Ingersoll 2011-07-26, 14:18
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