You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by kiranprasad <ki...@imimobile.com> on 2011/10/17 14:03:57 UTC

How to escape if Seperator charector in a record

Hi 

How can I ignore the character in a record if it contains the seperator char in the record.
eg : Seperator char is ‘|’.

The  Record values are | seperated

xyz|1234|98798|”xyz|abc”|


Regards
Kiran.G

Re: How to escape if Seperator charector in a record

Posted by Dmitriy Ryaboy <dv...@gmail.com>.
Write a custom loader.
You can check out CSV loader in the piggybank, it does something like this.

D

On Mon, Oct 17, 2011 at 5:03 AM, kiranprasad <ki...@imimobile.com>wrote:

> Hi
>
> How can I ignore the character in a record if it contains the seperator
> char in the record.
> eg : Seperator char is ‘|’.
>
> The  Record values are | seperated
>
> xyz|1234|98798|”xyz|abc”|
>
>
> Regards
> Kiran.G