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

type resolution inconsistency

    XMLWordPrintableJSON

Details

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

    Description

      This script works:

      A = load 'test' using PigStorage(':') as (name: chararray, age: int, gpa: float);
      B = group A by age;
      C = foreach B

      { D = filter A by gpa > 2.5; E = order A by name; F = A.age; describe F; G = distinct F; generate group, COUNT(D), MAX (E.name), MIN(G.$0);}

      dump C;

      This one produces an error:

      A = load 'test' using PigStorage(':') as (name: chararray, age: int, gpa: float);
      B = group A by age;
      C = foreach B

      { D = filter A by gpa > 2.5; E = order A by name; F = A.age; G = distinct F; generate group, COUNT(D), MAX (E.name), MIN(G);}

      dump C;

      Notice the difference in how MIN is passed the data.

      Attachments

        1. PIG-973.patch
          10 kB
          Richard Ding

        Activity

          People

            rding Richard Ding
            olgan Olga Natkovich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: