You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Alex Rovner <al...@gmail.com> on 2011/10/19 01:52:18 UTC

Dashes in parameters when using pig server

Hello,

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:
    "=" ...

Are dashes not allowed in keys of parameters?

Thanks
Alex R

Re: Dashes in parameters when using pig server

Posted by Alex Rovner <al...@gmail.com>.
Better late then never:

https://issues.apache.org/jira/browse/PIG-2464


On Tue, Oct 18, 2011 at 11:43 PM, Thejas Nair <th...@hortonworks.com>wrote:

> That looks like a bug. Can you please open a jira ?
> Thanks,
> Thejas
>
>
> On 10/18/11 4:52 PM, Alex Rovner wrote:
>
>> Hello,
>>
>> 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:
>>     "=" ...
>>
>> Are dashes not allowed in keys of parameters?
>>
>> Thanks
>> Alex R
>>
>>
>

Re: Dashes in parameters when using pig server

Posted by Thejas Nair <th...@hortonworks.com>.
That looks like a bug. Can you please open a jira ?
Thanks,
Thejas

On 10/18/11 4:52 PM, Alex Rovner wrote:
> Hello,
>
> 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:
>      "=" ...
>
> Are dashes not allowed in keys of parameters?
>
> Thanks
> Alex R
>