You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Rohini Palaniswamy (JIRA)" <ji...@apache.org> on 2017/11/28 20:09:00 UTC
[jira] [Commented] (PIG-5315) pig.script is not set for scripts run
via PigServer
[ https://issues.apache.org/jira/browse/PIG-5315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16269387#comment-16269387 ]
Rohini Palaniswamy commented on PIG-5315:
-----------------------------------------
While checking code to ensure that we have not missed any other place, found a couple of cases.
1) We should also call ScriptState.setFileName in the PigServer.registerScript(String fileName, Map<String,String> params,List<String> paramsFiles)
2) org.apache.pig.pigunit.pig.PigServer also requires the change
3) GruntParser.loadScript is another place ScriptState.setFileName and ScriptState.setScript is required. run/exec commands go through this code.
> pig.script is not set for scripts run via PigServer
> ---------------------------------------------------
>
> Key: PIG-5315
> URL: https://issues.apache.org/jira/browse/PIG-5315
> Project: Pig
> Issue Type: Bug
> Reporter: Rohini Palaniswamy
> Assignee: Satish Subhashrao Saley
> Priority: Minor
> Labels: newbie
> Fix For: 0.18.0
>
> Attachments: PIG-5315-1.patch
>
>
> ScriptState.get().setScript() is only called in Main and BoundScript and not in PigServer.registerScript
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)