You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2010/07/28 18:23:16 UTC

[jira] Updated: (PIG-1423) Suggest to add clear command in grunt to clear the relation variable

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

Olga Natkovich updated PIG-1423:
--------------------------------

        Status: Resolved  (was: Patch Available)
    Resolution: Won't Fix

This will be resolved as part of turing complete work

> Suggest to add clear command in grunt to clear the relation variable
> --------------------------------------------------------------------
>
>                 Key: PIG-1423
>                 URL: https://issues.apache.org/jira/browse/PIG-1423
>             Project: Pig
>          Issue Type: New Feature
>          Components: grunt
>    Affects Versions: 0.8.0
>            Reporter: Jeff Zhang
>            Assignee: Jeff Zhang
>             Fix For: 0.8.0
>
>         Attachments: PIG-1423.patch
>
>
> The relation name in pig script can been considered as variable of programming language. One risk of the current grunt is that user may use the previous defined relation name by typo after a long period of work on grunt. And it is difficult for users to track this problem.  E.g. the following red "students" is not the user intend to use, but here grunt won't throw any error meesage.
> students = load 'a.txt';
> ....
> student = load 'b.txt';
> result = foreach {color:red}students{color} generate $0;
> The clear command is to clear the variable defined before, then if users use the relation name defined before, grunt will throw error message. And this command also will be useful to let user reuse the relation names especially when he's doing lots of experiments for one specific task.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.