[
https://issues.apache.org/jira/browse/PIG-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190356#comment-13190356
]
Prashant Kommireddi commented on PIG-2464:
------------------------------------------
Hi Alex, is there a specific need to use "-" in a key?
There are specific rules governing what can be used as a key, please read
http://pig.apache.org/docs/r0.9.1/cont.html#parameter-sub
Since we have a syntax around parameter subsitution, I don't feel this needs
any fix.
> PigServer fails to parse parameters with dashes
> ------------------------------------------------
>
> Key: PIG-2464
> URL: https://issues.apache.org/jira/browse/PIG-2464
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.9.1
> Reporter: Alex Rovner
>
> I am using pig through the pig server. I need to pass some parameters to the
> pig script which I am passing by calling the
> pigServer.registerScript(pigScript, params);
> If my parameters have dashes in them, pig fails with the following (Parameter
> used here is run-date=20110531 where "run-date" is the key and 20110531 is
> the value):
> 11/10/18 19:44:57 ERROR pig.PigServer: Encountered " <OTHER> "-date=20110531
> "" at line 1, column 6.
> Was expecting:
> "=" ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira