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 Threaded View
Pig >> mail # user >> removing last item in a bag


Copy link to this message
-
removing last item in a bag
How do I remove the last item in a bag.

For example:

(group_1,{(2012-12-15,a),(2012-12-17,a),(2012-12-23,c)})
I would like to remove the last item so that the following is the result:
(group_1,{(2012-12-15,a),(2012-12-17,a)})
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