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