Reply
New Contributor
Posts: 2
Registered: ‎11-17-2014

Question on multiple delimiters. Single quote n comma. treat anything in single quote as single colu

I'm new to to Pig. I have a problem - My input textfile.txt -> aaaa,bbbb,cccc aaaa,'xxxx,yyyy',zzzz qqqq,wwww,eeee Output should have three columns only. Anything in single quotes should be treated as single column. 'xxxx,yyyy' to be treated as one field data only. If I use below - A = load textfile.txt PigStorage(,) as (col1:chararray, col2:chararray) I get - (aaaa,bbbb,cccc) (aaaa,'xxxx,yyyy') (qqqq,wwww,eeee) Please help me with this.
New Contributor
Posts: 2
Registered: ‎11-17-2014

Re: Question on multiple delimiters. Single quote n comma. treat anything in single quote as single

i mean, i am using -

A = load textfile.txt PigStorage(,) as (col1:chararray, col2:chararray, col3:chararray)

Announcements
New solutions