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

Switch to Threaded View
Pig, mail # user - Summing the contents of a bag


Copy link to this message
-
Summing the contents of a bag
James Newhaven 2012-05-28, 22:40
Given a relation that contains this:

({(11),(9)})
({(8),(7)})

Is it possible for me to SUM the contents of each bag so I get:
(20)
(15)

Thanks,
James