pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allan Avendaño (JIRA) <j...@apache.org>
Subject [jira] [Commented] (PIG-2583) Add Grunt command to list the statements in cache
Date Tue, 08 May 2012 22:05:48 GMT

    [ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270879#comment-13270879
] 

Allan Avendaño commented on PIG-2583:
-------------------------------------

I was working on this, but I found something particular if we show the last definition for
the alias, for example on this sequence:

A = load 'data/abs' using PigStorage('|') as (name:chararray, id1:int, id2:int, id3:int);
D = group A by id1;
A = load 'data/abs' using PigStorage('|') as (name:chararray, x:int, y:int, z:int); 


With modifications on the patch that I attach, the following history is shown (according to
historical modifications on aliases):

D = group A by id1;
A = load 'data/abs' using PigStorage('|') as (name:chararray, x:int, y:int, z:int);


But, D will work on previous schema of A, and not with the last definition. And maybe, we
are missing this other historical point of view. 

                
> Add Grunt command to list the statements in cache
> -------------------------------------------------
>
>                 Key: PIG-2583
>                 URL: https://issues.apache.org/jira/browse/PIG-2583
>             Project: Pig
>          Issue Type: Improvement
>    Affects Versions: 0.10.0
>            Reporter: Daniel Dai
>            Assignee: Allan Avendaño
>            Priority: Minor
>              Labels: newbie
>             Fix For: 0.11
>
>         Attachments: gruntHistory.patch, gruntHistory1.txt
>
>
> It is convenient to list statements in cache:
> grunt> a = load '1.txt';         
> grunt> b = foreach a generate $0, $1;
> grunt> list
> a = load '1.txt';
> b = foreach a generate $0, $1;

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

       

Mime
View raw message