Pig
  1. Pig
  2. PIG-2248

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor 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.

      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

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:

                Development