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

          Alan Gates made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Johnny Zhang made changes -
          Link This issue is related to PIG-3314 [ PIG-3314 ]
          Johnny Zhang made changes -
          Attachment PIG-2248.patch.txt [ 12579952 ]
          Johnny Zhang made changes -
          Remote Link This issue links to "review board (Web Link)" [ 12142 ]
          Johnny Zhang made changes -
          Attachment PIG-2248.patch.txt [ 12577312 ]
          Johnny Zhang made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Johnny Zhang made changes -
          Attachment PIG-2248.patch.txt [ 12577307 ]
          Johnny Zhang made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Johnny Zhang made changes -
          Assignee Johnny Zhang [ dreambird ]
          Johnny Zhang made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Johnny Zhang made changes -
          Field Original Value New Value
          Attachment PIG-2248.patch.txt [ 12577167 ]
          Alan Gates created issue -

            People

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

              Dates

              • Created:
                Updated:

                Development