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 >> add a key value pair in map


Copy link to this message
-
add a key value pair in map
Hi Pig users,

Do you know how to add a key value pair into a map?

For instance, a relation of A contains a document:map[] for each tuple;

B = foreach A generate document, ['newkey'#'newvalue'];

I want to add the 'newkey' and 'newvalue' inside the document map. Is it
possible?

Best Regards,

Jerry
+
Pradeep Gollakota 2013-11-16, 02:55
+
Jerry Lam 2013-11-16, 18:51
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