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

Macro missing returns clause doesn't give a good error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0
    • None
    • None
    • Reviewed

    Description

      For the following query:

      define test( out1,out2 ){
      A = load 'x' as (u:int, v:int);
      $B = filter A by u < 3 and v < 20;
      }

      Pig gives the following error message: Syntax error,unexpected symbol at or near '{'

      Previously, it gives: mismatched input '{' expecting RETURNS

      The previous message is more meaningful.

      Attachments

        1. PIG-2058.patch
          2 kB
          Richard Ding

        Activity

          People

            rding Richard Ding
            xuefuz Xuefu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: