Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-1152

bincond operator throws parser error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.9.0
    • None
    • None

    Description

      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;

      Attachments

        1. PIG-1152-3.patch
          9 kB
          Xuefu Zhang
        2. PIG-1152-2.patch
          8 kB
          Xuefu Zhang

        Issue Links

          Activity

            People

              xuefuz Xuefu Zhang
              ankur Ankur Bansal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: