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

Pig should allow self joins

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 0.18.0
    • None
    • None

    Description

      This doesn't have to even be optimized, and can still involve a double scan of the data, but there is no reason the following should work:

      a = load 'thing' as (x:int);
      b = join a by x, (foreach a generate *) by x;
      

      but this does not:

      a = load 'thing' as (x:int);
      b = join a by x, a by x;
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jcoveney Jonathan Coveney
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: