It might depend on how shell process the quotes. For me, empty string
does not work, but \"\" works.

Daniel

On Wed, Aug 24, 2011 at 6:02 PM, Ashutosh Chauhan <[email protected]> wrote:
> Hey Marek,
>
> /pig/bin/pig -param rootPath="" MapProfile.pig
>
> should work if you are trying to pass empty strings. Can you paste your pig
> query and the error log that you are getting?
>
> Ashutosh
>
> On Mon, Aug 22, 2011 at 03:12, Marek Miglinski <[email protected]> wrote:
>
>> Hey to everyone!
>>
>> I've encountered with a problem when I need to pass null or empty -param to
>> pig, but I can't figure out how could it be done?
>>
>> Following does not work:
>> /pig/bin/pig -param rootPath= MapProfile.pig
>> /pig/bin/pig -param rootPath='' MapProfile.pig
>> /pig/bin/pig -param rootPath="" MapProfile.pig
>> /pig/bin/pig -param rootPath=null MapProfile.pig
>>
>>
>> Thank you for your help.
>>
>

Reply via email to