You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Richard Ding (JIRA)" <ji...@apache.org> on 2011/01/19 19:30:45 UTC

[jira] Resolved: (PIG-1806) Modify embedded Pig API for usability

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

Richard Ding resolved PIG-1806.
-------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

Unit tests passed. Patch committed to trunk.

> Modify embedded Pig API for usability 
> --------------------------------------
>
>                 Key: PIG-1806
>                 URL: https://issues.apache.org/jira/browse/PIG-1806
>             Project: Pig
>          Issue Type: Improvement
>    Affects Versions: 0.9.0
>            Reporter: Richard Ding
>            Assignee: Richard Ding
>             Fix For: 0.9.0
>
>         Attachments: PIG-1806.patch, PIG-1806_1.patch
>
>
>    * bind methods. Currently, to explicitly bind variables to parameters, the variable type must be string:
> {code}
> public BoundScript bind(Map<String, String> vars) throws IOException {...}
> {code} 
> User needs explicitly convert variables to strings before passing them in. We propose to change the method signature so user does not need to do the conversion:
> {code}
> public BoundScript bind(Map<String, Object> vars) throws IOException {...}
> {code} 
> Internally Pig uses toString() method to convert variables to strings.
>    * fs method. Current Pig.fs(...) method doesn't return any value. Since this method just turns around to call FsShell.run() which has a return code, we should pass this return code to the user;
> {code}
> public static int fs(String cmd) throws IOException {...}
> {code}

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