[
https://issues.apache.org/jira/browse/PIG-572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shubham Chopra updated PIG-572:
-------------------------------
Attachment: registerScript.patch
The attached patch includes this addition with test cases. The patch also adds
transient identifier to attributes of LOLoad, LOStore and DataByteArray, making
the logical plan serializable.
> A PigServer.registerScript() method, which lets a client programmatically
> register a Pig Script.
> ------------------------------------------------------------------------------------------------
>
> Key: PIG-572
> URL: https://issues.apache.org/jira/browse/PIG-572
> Project: Pig
> Issue Type: New Feature
> Affects Versions: types_branch
> Reporter: Shubham Chopra
> Priority: Minor
> Fix For: types_branch
>
> Attachments: registerScript.patch
>
>
> A PigServer.registerScript() method, which lets a client programmatically
> register a Pig Script.
> For example, say theres a script my_script.pig with the following content:
> a = load '/data/my_data.txt';
> b = filter a by $0 > '0';
> The function lets you use something like the following:
> pigServer.registerScript("my_script.pig");
> pigServer.registerQuery("c = foreach b generate $2, $3;");
> pigServer.store("c");
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.