Grokbase Groups Pig user April 2011
FAQ
Hi,

I am trying to split a string using piggybank - split function:

DEFINE StrSplit org.apache.pig.piggybank.evaluation.string.Split();
A = Load 'Sample' using Pigstorage(' ');
B = ForEach A generate $4 as URL, StrSplit($10, 'N' ) as Browser;
DUMP B;

I do not get any tuple as the output for the Browser field. What is that I am
doing wrong?

Thanks,
Sumit.

Search Discussions

  • Sumit ghosh at Apr 20, 2011 at 8:31 am
    Got it!


    StrSplit((chararray)$10, 'N' )



    ________________________________
    From: sumit ghosh <sumitkg@yahoo.com>
    To: user@pig.apache.org
    Sent: Wed, 20 April, 2011 10:18:47 AM
    Subject: Splitting a String

    Hi,

    I am trying to split a string using piggybank - split function:

    DEFINE StrSplit org.apache.pig.piggybank.evaluation.string.Split();
    A = Load 'Sample' using Pigstorage(' ');
    B = ForEach A generate $4 as URL, StrSplit($10, 'N' ) as Browser;
    DUMP B;

    I do not get any tuple as the output for the Browser field. What is that I am
    doing wrong?

    Thanks,
    Sumit.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriespig, hadoop
postedApr 20, '11 at 4:49a
activeApr 20, '11 at 8:31a
posts2
users1
websitepig.apache.org

1 user in discussion

Sumit ghosh: 2 posts

People

Translate

site design / logo © 2021 Grokbase