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

Return alias validation failed when there is single line comment in the macro

    XMLWordPrintableJSON

Details

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

    Description

      The following script

      define test() returns b { 
         a = load 'data' as (name, age, gpa);
      -- message 
         $b = filter a by (int)age > 40; 
      };
      
      beta = test();
      store beta into 'output';
      

      results in a validation failure:

      ERROR 1200 "Macro test missing return alias b"
      

      Attachments

        1. PIG-2088.patch
          2 kB
          Richard Ding

        Activity

          People

            rding Richard Ding
            rding Richard Ding
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: