You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Russell Jurney (JIRA)" <ji...@apache.org> on 2012/07/24 02:12:34 UTC

[jira] [Created] (PIG-2836) Namespace in Pig macros collides with Pig scripts

Russell Jurney created PIG-2836:
-----------------------------------

             Summary: Namespace in Pig macros collides with Pig scripts
                 Key: PIG-2836
                 URL: https://issues.apache.org/jira/browse/PIG-2836
             Project: Pig
          Issue Type: Bug
          Components: grunt, parser
    Affects Versions: 0.10.0, 0.9.2, 0.11, 0.10.1
            Reporter: Russell Jurney
            Assignee: Alan Gates
            Priority: Critical


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (PIG-2836) Namespace in Pig macros collides with Pig scripts

Posted by "Dmitriy V. Ryaboy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421076#comment-13421076 ] 

Dmitriy V. Ryaboy commented on PIG-2836:
----------------------------------------

Macro relation names get suffixed already. Can you provide a script to reproduce your issue?
                
> Namespace in Pig macros collides with Pig scripts
> -------------------------------------------------
>
>                 Key: PIG-2836
>                 URL: https://issues.apache.org/jira/browse/PIG-2836
>             Project: Pig
>          Issue Type: Bug
>          Components: grunt, parser
>    Affects Versions: 0.9.2, 0.10.0, 0.11, 0.10.1
>            Reporter: Russell Jurney
>            Assignee: Alan Gates
>            Priority: Critical
>              Labels: bacon, confit, fucke, fucked, goto, hash, macros, pig, sad
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PIG-2836) Namespace in Pig macros collides with Pig scripts

Posted by "Russell Jurney (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Russell Jurney resolved PIG-2836.
---------------------------------

    Resolution: Invalid
    
> Namespace in Pig macros collides with Pig scripts
> -------------------------------------------------
>
>                 Key: PIG-2836
>                 URL: https://issues.apache.org/jira/browse/PIG-2836
>             Project: Pig
>          Issue Type: Bug
>          Components: grunt, parser
>    Affects Versions: 0.9.2, 0.10.0, 0.11, 0.10.1
>            Reporter: Russell Jurney
>            Assignee: Alan Gates
>            Priority: Critical
>              Labels: bacon, confit, goto, hash, macros, pig, sad
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PIG-2836) Namespace in Pig macros collides with Pig scripts

Posted by "Russell Jurney (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Russell Jurney updated PIG-2836:
--------------------------------

    Labels: bacon confit goto hash macros pig sad  (was: bacon confit fucke fucked goto hash macros pig sad)
    
> Namespace in Pig macros collides with Pig scripts
> -------------------------------------------------
>
>                 Key: PIG-2836
>                 URL: https://issues.apache.org/jira/browse/PIG-2836
>             Project: Pig
>          Issue Type: Bug
>          Components: grunt, parser
>    Affects Versions: 0.9.2, 0.10.0, 0.11, 0.10.1
>            Reporter: Russell Jurney
>            Assignee: Alan Gates
>            Priority: Critical
>              Labels: bacon, confit, goto, hash, macros, pig, sad
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira