pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Graham (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-1464) Should clean the Graph when register another Pig Script
Date Thu, 27 Sep 2012 15:52:07 GMT

     [ https://issues.apache.org/jira/browse/PIG-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bill Graham updated PIG-1464:
-----------------------------

    Status: Open  (was: Patch Available)

Canceling patch since there's concern about backward compatibility. I don't think this change
is worth the potential breakage it might incur.
                
> Should clean the Graph when register another Pig Script
> -------------------------------------------------------
>
>                 Key: PIG-1464
>                 URL: https://issues.apache.org/jira/browse/PIG-1464
>             Project: Pig
>          Issue Type: Bug
>          Components: grunt
>    Affects Versions: 0.8.0
>            Reporter: Jeff Zhang
>            Assignee: Jeff Zhang
>         Attachments: PIG_1463.patch
>
>
> In the current implementation, the variable names in pig script are all global variable.
This make one pig script know the variable in other scripts. In my opinion, this is not right.
Every relation name in pig script should be local variable, otherwise it will bring in unexpected
result.  This issue relates to PIG-1423
> E.g there are two pig script as follows:
> Test_1.pig
> {code}
> a = load 'data/b.txt' ;
> {code}
> Test_2.pig
> {code}
> b = foreach a generate $0;   // "a" is recognized by Grunt although it is in Test_1.pig
> {code}
> And the following execute normally, do not throw any exception
> {code}
> PigServer pig=new PigServer(ExecType.Local);
> pig.registerScript("Test_1.pig");
> pig.registerScript("Test_2.pig");
> {code}

--
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

Mime
View raw message