Quantcast
Channel: PIG how to count a number of rows in alias - Stack Overflow
Viewing all articles
Browse latest Browse all 8

Answer by Jerome Serrano for PIG how to count a number of rows in alias

$
0
0

Arnon Rotem-Gal-Oz already answered this question a while ago, but I thought some may like this slightly more concise version.

LOGS = LOAD 'log';LOG_COUNT = FOREACH (GROUP LOGS ALL) GENERATE COUNT(LOGS);

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>