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

Extend pig to support DISTINCT x.(project)

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: 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)

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: