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 >> Escaping Dollar Sign in Map in Pig 0.10


Copy link to this message
-
Escaping Dollar Sign in Map in Pig 0.10
This wasn't a problem in 0.9.2, but in 0.10, when I try to access a key in
a map that has a dollar sign in it, I get hammered with errors that I
haven't defined the variable. Specifically:

   blah = FOREACH meh GENERATE source, json_post_id#'$id' AS post_id;

returns

   Undefined parameter : id

That's fine and makes sense, but when I amend it to:

   blah = FOREACH meh GENERATE source, json_post_id#'\$id' AS post_id;

I get:

   Unexpected character '$'

Ideas?

Thanks!
Eli
+
Dmitriy Ryaboy 2013-01-11, 03:33
+
Eli Finkelshteyn 2013-01-11, 20:00
+
Eli Finkelshteyn 2013-01-14, 15:40
+
Cheolsoo Park 2013-01-15, 23:17
+
Kris Coward 2013-01-15, 23:27
+
Eli Finkelshteyn 2013-01-22, 22:47
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