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

Introduce a syntax making declared aliases optional

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None
    • Release Note:
      A relation name is no longer required in the left side of a query statement. Instead, a fat arrow (=>) can be used to signify it. To refer the last relation, an arroba (@) can be used.

      Description

      This is something Daniel and I have talked about before, and now that we have the @ syntax, this is easy to implement. The idea is that relation names are no longer required, and you can instead use a fat arrow (obviously that can be changed) to signify this. The benefit is not having to engage in the mental load of having to name everything.

      One other possibility is just making "alias =" optional. I fear that that could be a little TOO magical, but I welcome opinions.

        Attachments

        1. PIG-3136-3.patch
          62 kB
          Jonathan Coveney
        2. PIG-3136-2.patch
          57 kB
          Jonathan Coveney
        3. PIG-3136-1.patch
          55 kB
          Jonathan Coveney
        4. PIG-3136-0.patch
          45 kB
          Jonathan Coveney

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: