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

Extend pig to support DISTINCT x.(project)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • 0.11
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: