Pig
  1. Pig
  2. PIG-2005

Discrepancy in the way dry run handles semicolon in macro definition

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.9.0
    • Component/s: grunt
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Macro definition requires a semicolon to mark the end. For example:

      define mymacro(x) returns y {... ...};
      

      But invoked through command line, the macro definitions without semicolon also work except in the case of dryrun. This discrepancy is due to GruntParser automatic appending a semicolon to Pig statements if semicolon is absent at the end. Dryrun GruntParser should do the same.

        Activity

        Olga Natkovich made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Richard Ding made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Resolution Fixed [ 1 ]
        Richard Ding made changes -
        Field Original Value New Value
        Attachment PIG-2005_1.patch [ 12476929 ]
        Richard Ding created issue -

          People

          • Assignee:
            Richard Ding
            Reporter:
            Richard Ding
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development