[ 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