pig-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From praveenesh kumar <praveen...@gmail.com>
Subject How to use tuples ?
Date Thu, 02 Feb 2012 09:05:39 GMT
Hi,

I am trying to learn how can I store records in tuples ?

Suppose I have a txt file

$ cat tmp.txt

1,2,3,4
2,3,4,5
4,5,5,6

I am doing this
$ pig > A = Load 'tmp.txt' using PigStorage(',') AS
(t:tuple(int:a,int:b,int:c,int:d));
$ pig > Dump A;
I am getting nothing in the output
( )
( )
( )

Can anyone help me understanding why its happening ?
Even if I don't use PigStorage nothing is coming.

Thanks,
Praveenesh

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message