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

Pig parser does not detect when a macro name masks a UDF name

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.9.0
    • Fix Version/s: None
    • Component/s: parser
    • Labels:
      None

      Description

      Pig accepts a macro like:

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

      This should produce a warning that it is masking a UDF.

        Attachments

        1. PIG-2248.patch.txt
          4 kB
          Johnny Zhang
        2. PIG-2248.patch.txt
          5 kB
          Johnny Zhang
        3. PIG-2248.patch.txt
          5 kB
          Johnny Zhang
        4. PIG-2248.patch.txt
          5 kB
          Johnny Zhang

          Issue Links

            Activity

              People

              • Assignee:
                dreambird Johnny Zhang
                Reporter:
                alangates Alan Gates
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: