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

Namespace in Pig macros collides with Pig scripts

    XMLWordPrintableJSON

Details

    Description

      Relation names in macros collide with relation names in the calling pig script. This is my most common source of errors and it makes writing macros hard. Suggest that the macro processor create a unique namespace for all relations in a macro other than $in and $out. Prepend something to each relation name or somehow create a unique per-macro namespace.

      This may conflict with some uses of macros where relation names are passed through passively, but this is always avoidable by supplying parameters and feels GOTO f*cked.

      Attachments

        Activity

          People

            gates Alan Gates
            russell.jurney Russell Jurney
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: