What about this one:
A = load 'data.txt' using PigStorage(' ') as (src:int, out1:int, out2:int);
B = foreach A generate src, TOTUPLE(out1, out2) as t:();

--Lorand

On 04/05/2014 01:27 AM, Koppula, Abhilash Reddy wrote:
Hi All,

I have Input data format as below to represent the outgoing links from a source 
URL i.e Source URL 1 has 2 and 3 outgoing URLs

1 2 3

2 3 4

3 4

4 1

And I would like to load into Pig as below

So,  Ou

(1,(2,3))

(2,(3,4))

(3,(4))

(4,(1))



Can I do this using default AS schema or Do I have to write a custom loader 
function.



Thanks,

Akoppula



Reply via email to