[ 
https://issues.apache.org/jira/browse/PIG-3495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13784839#comment-13784839
 ] 

Daniel Dai commented on PIG-3495:
---------------------------------

Sure. When we register a script with absolute path, such as D:\scriptingudf.py, 
it ends up with D\scriptingudf.py in job.jar. The store part is done with 
PigContext.addScriptFile:

        aliasedScriptFiles.put(name.replaceFirst("^/", "").replaceAll(":", ""), 
new File(path));

The PigContext code is part of PIG-3333.

When we retrieve it back in the backend, we need to do the symmetric operation.

> Streaming udf e2e tests failures on Windows
> -------------------------------------------
>
>                 Key: PIG-3495
>                 URL: https://issues.apache.org/jira/browse/PIG-3495
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.12.0
>
>         Attachments: PIG-3495-1.patch
>
>
> Register a jython script with an absolute path fail. For Example:
> {code}
> register 'D:\scriptingudf.py' using jython as myfuncs;
> a = load 'studenttab10k' using PigStorage() as (name, age:int, gpa:double);
> b = foreach a generate myfuncs.square(age);
> dump b;
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to