[
https://issues.apache.org/jira/browse/PIG-1824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987105#action_12987105
]
Ashutosh Chauhan commented on PIG-1824:
---------------------------------------
Unless, there is a java api provided by jython interpreter which lists all the
dependencies of a jython script, trying to figure out all the module
dependencies yourself will be close to writing a linker, isn't it? I think it
will be easier to let user specify and ship his modules in the meanwhile.
> Support import modules in Jython UDF
> ------------------------------------
>
> Key: PIG-1824
> URL: https://issues.apache.org/jira/browse/PIG-1824
> Project: Pig
> Issue Type: Improvement
> Reporter: Richard Ding
>
> Currently, Jython UDF script doesn't support Jython import statement as in
> the following example:
> {code}
> #!/usr/bin/python
> import re
> @outputSchema("y:bag{t:tuple(word:chararray)}")
> def strsplittobag(content,regex):
> return re.compile(regex).split(content)
> {code}
> Can Pig automatically locate the Jython module file and ship it to the
> backend? Or should we add a ship clause to let user explicitly specify the
> module to ship?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.