posted 8 years ago
Hi,
I am new to PIG programming and stuck at following example.
My input file is as follows:
(1,2,3),(sam,roger,john)
(4,5,6),(cathy,sharon,lindsey)
I am loading this data into an alias as follows:
A = load '/user/pig/input/tuple2' as (T1:tuple(a:int,b:int,c:int),T2:tuple(x:chararray,y:chararray,z:chararray));
I have also tried it using
A = load '/user/pig/input/tuple2' using PigStorage(',') as (T1:tuple(a:int,b:int,c:int),T2:tuple(x:chararray,y:chararray,z:chararray));
whenever I dump A using any of these commands, I only get following output:
(,)
(,)
Can anyone suggest what is wrong here?