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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.9.0
    • None
    • parser
    • 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
          5 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
          4 kB
          Johnny Zhang

        Issue Links

          Activity

            People

              dreambird Johnny Zhang
              gates Alan Gates
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: