bincond operator throws parser error

                 Key: PIG-1152
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.6.0
            Reporter: Ankur

Bincond operator throws parser error when true condition contains a constant 
bag with 1 tuple containing a single field of int type with -ve value. 

Here is the script to reproduce the issue

A = load 'A' as (s: chararray, x: int, y: int);
B = group A by s;
C = foreach B generate group, flatten(((COUNT(A) < 1L) ? {(-1)} : A.x));
dump C;

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to