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

Introduce a syntax to be able to easily refer to the previously defined relation

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • None
    • None

    Description

      Sometimes I feel like swimming with ANTLRs. This particular feature isn't too hard to add... and supports syntax like this:

      a = load 'thing' as (x:int);
      b = foreach @ generate x;
      c = foreach @ generate x;
      d = foreach @ generate x;
      

      I have a patch, though I need to make sure it doesn't change anything (it shouldn't) and I need to add tests.

      Attachments

        1. PIG-3090-0.patch
          45 kB
          Jonathan Coveney
        2. PIG-3090-1.patch
          52 kB
          Jonathan Coveney

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: