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

Nested Foreach with UDF and bincond is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.13.0
    • None
    • None

    Description

      Was checking out PIG-3000.

      A = load 'data' as (a:chararray);
      B = foreach A

      { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') ? 1 : 0); }

      This now throws "Invalid field projection. Projected field [c] does not exist in schema". Works fine in 0.11. Broken in trunk. Haven't checked 0.12.

      Attachments

        1. PIG-3643-1.patch
          0.9 kB
          Cheolsoo Park

        Issue Links

          Activity

            People

              cheolsoo Cheolsoo Park
              rohini Rohini Palaniswamy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: