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

Switch to Plain 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