Pig
  1. Pig
  2. PIG-2536

Extend pig to support DISTINCT x.(project)

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 0.11
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Currently, pig does not allow this syntax:

      A = load 'thing' (x:int, y:int, z:int);
      B = distinct A.x;
      C = distinct A.(y,z)
      D = distinct C.$0;
      

      and so on. With this patch, it does. I should probably add more tests, though it's a simple patch... it just turns distinct rel.proj into syntactic sugar for distinct (foreach rel generate proj)

      1. PIG-2436-0.patch
        2 kB
        Jonathan Coveney

        Activity

          People

          • Assignee:
            Jonathan Coveney
            Reporter:
            Jonathan Coveney
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development