Pig
  1. Pig
  2. PIG-3136

Introduce a syntax making declared aliases optional

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

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

        Activity

        Jonathan Coveney created issue -
        Jonathan Coveney made changes -
        Field Original Value New Value
        Attachment PIG-3136-0.patch [ 12566440 ]
        Jonathan Coveney made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Jonathan Coveney made changes -
        Attachment PIG-3136-1.patch [ 12569832 ]
        Jonathan Coveney made changes -
        Attachment PIG-3136-2.patch [ 12571566 ]
        Jonathan Coveney made changes -
        Attachment PIG-3136-3.patch [ 12571884 ]
        Cheolsoo Park made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Cheolsoo Park made changes -
        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.
        Daniel Dai made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development