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

Pig parser does not detect multiple arguments with the same name passed to macro

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 0.9.0
    • 0.18.0
    • parser
    • None
    • Reviewed

    Description

      Pig accepts a macro like

      define simple_macro(in_relation, min_gpa, min_gpa) returns c {
                                b = filter $in_relation by gpa >= $min_gpa;
                                $c = foreach b generate age, name;
      

      This should produce an error.

      Attachments

        1. PIG-2247.patch.txt
          3 kB
          Johnny Zhang

        Issue Links

          Activity

            People

              dreambird Johnny Zhang
              gates Alan Gates
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: