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 # dev >> Parenthesis not being added by parser


Copy link to this message
-
Parenthesis not being added by parser
Hello,

I am using Pig's QueryParser.g in order to construct an AST from a
query and AstPrinter.g to print it back as a String from the AST.
However, I noticed that with this query:

players    = load 'baseball' as (name:chararray, team:chararray,
> position:bag{t:(p:chararray)}, bat:map[]);
constructing the query back from the AST gives an error:

line 1:49 missing LEFT_PAREN at 'p'
> line 1:60 missing RIGHT_PAREN at '}'
Might there be a bug in either of the files?

Best,
Alejandro
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