You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (Created) (JIRA)" <ji...@apache.org> on 2012/03/14 00:28:40 UTC
[jira] [Created] (PIG-2583) Add Grunt command to list the
statements in cache
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
Reporter: Daniel Dai
Priority: Minor
Fix For: 0.11
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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan Avendaño updated PIG-2583:
--------------------------------
Attachment: (was: gruntHistory1.txt)
> 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.patch
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Prashant Kommireddi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272949#comment-13272949 ]
Prashant Kommireddi commented on PIG-2583:
------------------------------------------
Thanks Allan for the contribution!
> 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.patch, gruntHistory2.patch, gruntHistory3.patch
>
>
> 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
[jira] [Reopened] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan Avendaño reopened PIG-2583:
---------------------------------
I would like to make some changes on the format to show the list of statements. For example, I make it to display the statements with an indentation like history command does on Unix.
> 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: gruntHistory1.patch, gruntHistory2.patch, gruntHistory3.patch, gruntHistory.patch
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271822#comment-13271822 ]
Daniel Dai commented on PIG-2583:
---------------------------------
Looks good. Another request however, we shall print line number, but we can optionally turn it off (history -n sounds good?)
> 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.patch, gruntHistory2.patch
>
>
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan Avendaño updated PIG-2583:
--------------------------------
Attachment: gruntHistory3.patch
> 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.patch, gruntHistory2.patch, gruntHistory3.patch
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Bill Graham (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228925#comment-13228925 ]
Bill Graham commented on PIG-2583:
----------------------------------
Great idea. What about {{history}} instead of {{list}}? It's similar to bash and groovy shell. I couldn't find an irb equivalent.
> 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
> Reporter: Daniel Dai
> Priority: Minor
> Labels: newbie
> Fix For: 0.11
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Prashant Kommireddi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271965#comment-13271965 ]
Prashant Kommireddi commented on PIG-2583:
------------------------------------------
Not a huge deal, but again replicating Unix 'history' behavior (no parenthesis) would be ideal in my opinion.
{code}
pkommireddi@pkommireddi-wsl:~$ pwd
/home/pkommireddi
pkommireddi@pkommireddi-wsl:~$ date
Wed May 9 17:01:37 PDT 2012
pkommireddi@pkommireddi-wsl:~$ pwd
/home/pkommireddi
pkommireddi@pkommireddi-wsl:~$ whoami
pkommireddi
pkommireddi@pkommireddi-wsl:~$ history
2989 pwd
2990 date
2991 pwd
2992 whoami
{code}
> 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.patch, gruntHistory2.patch
>
>
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan Avendaño updated PIG-2583:
--------------------------------
Attachment: (was: gruntHistory2.txt)
> 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.patch, gruntHistory2.patch
>
>
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai updated PIG-2583:
----------------------------
Assignee: Allan Avendaño
> 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
>
>
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan Avendaño updated PIG-2583:
--------------------------------
Attachment: gruntHistory1.patch
> 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.patch
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Julien Le Dem (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500589#comment-13500589 ]
Julien Le Dem commented on PIG-2583:
------------------------------------
Please open a new ticket for this and resolve this one
> 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: gruntHistory1.patch, gruntHistory2.patch, gruntHistory3.patch, gruntHistory4.patch, gruntHistory.patch
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13269877#comment-13269877 ]
Daniel Dai commented on PIG-2583:
---------------------------------
It is right to put in command cache only if it is a Pig statement not a command. However, if an alias is get reused, we should show the last definition, not all. I think we should make use of Graph.scriptCache to do it.
> 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
>
>
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan updated PIG-2583:
-----------------------
Affects Version/s: 0.10.0
Status: Patch Available (was: Open)
I added an arraylist that works as cache of statements executed so far.
> 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
> Priority: Minor
> Labels: newbie
> Fix For: 0.11
>
>
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai updated PIG-2583:
----------------------------
Resolution: Fixed
Release Note:
Add new grunt command:
history [-n]: Display the list statements in cache. -n means hiding line numbers.
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
+1. Patch committed to trunk. Thanks Allan!
> 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.patch, gruntHistory2.patch, gruntHistory3.patch
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265551#comment-13265551 ]
Daniel Dai commented on PIG-2583:
---------------------------------
Thanks, I will take a look.
> 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
> Priority: Minor
> Labels: newbie
> Fix For: 0.11
>
> Attachments: gruntHistory.patch
>
>
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan Avendaño updated PIG-2583:
--------------------------------
Attachment: gruntHistory2.patch
History of operators used so far. Is used Graph.scriptCache
> 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.patch, gruntHistory2.patch
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Gianmarco De Francisci Morales (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270888#comment-13270888 ]
Gianmarco De Francisci Morales commented on PIG-2583:
-----------------------------------------------------
Probably it is fine anyway.
The order in which they are defined (and printed) will tell you that D got defined before A.
One use case I see for this history command is to build a Pig script interactively step by step.
The output of the history can be then copy-pasted to a file to save the script.
In this case you would need to repeat the D = ... statement anyway to get the correct order.
To do this for more than one statement you could simply use the output of history, and copy-paste it in grunt up to (excluding) the last A = ... statement.
> 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.patch
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Prashant Kommireddi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270899#comment-13270899 ]
Prashant Kommireddi commented on PIG-2583:
------------------------------------------
Should we let the behavior be similar to standard "history" command on UNIX shell?
{code}
localhost:~ pkommireddi$ pwd
/Users/pkommireddi
localhost:~ pkommireddi$ date
Tue May 8 15:26:26 PDT 2012
localhost:~ pkommireddi$ whoami
pkommireddi
localhost:~ pkommireddi$ pwd
/Users/pkommireddi
localhost:~ pkommireddi$ history
541 pwd
542 date
543 whoami
544 pwd
545 history
{code}
It might be useful for users while developing/debugging to be able to look at all declarations of an alias.
> 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.patch
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272158#comment-13272158 ]
Allan Avendaño commented on PIG-2583:
-------------------------------------
Last patch shows by default an enumerated history, this can be omitted with "-n"
> 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.patch, gruntHistory2.patch, gruntHistory3.patch
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271959#comment-13271959 ]
Daniel Dai commented on PIG-2583:
---------------------------------
Fine for me.
> 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.patch, gruntHistory2.patch
>
>
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan updated PIG-2583:
-----------------------
Attachment: gruntHistory.patch
> 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
> Priority: Minor
> Labels: newbie
> Fix For: 0.11
>
> Attachments: gruntHistory.patch
>
>
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan Avendaño updated PIG-2583:
--------------------------------
Attachment: gruntHistory1.txt
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan Avendaño updated PIG-2583:
--------------------------------
Attachment: gruntHistory2.txt
History of operators used so far. Is used Graph.scriptCache
> 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.patch, gruntHistory2.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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270977#comment-13270977 ]
Daniel Dai commented on PIG-2583:
---------------------------------
I take back the "last definition" part. If people keep reusing the same alias, we shall keep the complete history:
A = load ...
A = foreach A ...
A = filter A by ...
It is possible to detect complete dead statement, but I don't want to complicate the implementation.
However, we shall reuse scriptCache instead of introducing a new data structure.
> 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.patch
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Daniel Dai (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228963#comment-13228963 ]
Daniel Dai commented on PIG-2583:
---------------------------------
Sounds good.
> 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
> Reporter: Daniel Dai
> Priority: Minor
> Labels: newbie
> Fix For: 0.11
>
>
> 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
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272066#comment-13272066 ]
Daniel Dai commented on PIG-2583:
---------------------------------
Yes, that's better, and let's make show line number the default option.
> 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.patch, gruntHistory2.patch
>
>
> 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
[jira] [Updated] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan Avendaño updated PIG-2583:
--------------------------------
Attachment: gruntHistory4.patch
Changes on the displaying format of list of statements used so far.
> 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: gruntHistory1.patch, gruntHistory2.patch, gruntHistory3.patch, gruntHistory4.patch, gruntHistory.patch
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PIG-2583) Add Grunt command to list the
statements in cache
Posted by "Allan Avendaño (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271937#comment-13271937 ]
Allan Avendaño commented on PIG-2583:
-------------------------------------
Something like this?
grunt> history -n
(1) A = load 'data/abs' using PigStorage('|') as (name:chararray, id1:int, id2:int, id3:int);
(2) B = group A by id1;
(3) C = order A by id2;
grunt> history
A = load 'data/abs' using PigStorage('|') as (name:chararray, id1:int, id2:int, id3:int);
B = rank A by id1;
C = order A by id2;
> 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.patch, gruntHistory2.patch
>
>
> 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