You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by ranjith raghunath <ra...@gmail.com> on 2012/10/23 15:03:49 UTC
Reading fixed width files in pig
Team,
Are any out of the box load functions for fixed width files?
Re: Reading fixed width files in pig
Posted by ranjith raghunath <ra...@gmail.com>.
Thanks allen.
On Oct 26, 2012 6:43 PM, "Alan Gates" <ga...@hortonworks.com> wrote:
> I am not aware of any.
>
> Alan.
>
> On Oct 23, 2012, at 6:03 AM, ranjith raghunath wrote:
>
> > Team,
> >
> > Are any out of the box load functions for fixed width files?
>
>
Re: Reading fixed width files in pig
Posted by Alan Gates <ga...@hortonworks.com>.
I am not aware of any.
Alan.
On Oct 23, 2012, at 6:03 AM, ranjith raghunath wrote:
> Team,
>
> Are any out of the box load functions for fixed width files?
Re: Reading fixed width files in pig
Posted by Віталій Тимчишин <ti...@gmail.com>.
Sorry for late response, but in case you still need it.
I've used regular expression loader for such task.
The regexp would look something like
^(.{12})(.{10})$
for fields of width 12 and 10
2012/10/23 ranjith raghunath <ra...@gmail.com>
> Team,
>
> Are any out of the box load functions for fixed width files?
>
--
Best regards,
Vitalii Tymchyshyn