You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by Alejandro Guerrero Gonzalez <ag...@gmail.com> on 2012/10/08 21:02:34 UTC

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