Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig, mail # user - A question of pig default load function


Copy link to this message
-
A question of pig default load function
yonghu 2012-10-07, 19:00
Dear all,

When I load the data stored in txt file into two bags, e.g.
{(1),(2),(1)} {(1),(3)} using :
A = LOAD '/home/hans/test/r1.txt' AS
(b1:bag{t1:tuple(f1:int)},b2:bag{t2:tuple(f2:int)});
everything works fine.

But if I load the as the format
{(1),(2),(1)},{(1),(3)} using:
A = LOAD '/home/hans/test/r1.txt' AS
(b1:bag{t1:tuple(f1:int)},b2:bag{t2:tuple(f2:int)});
I only got the first part ({(1),(2),(1)},). I lost the second bag. Can
anyone tell me why?

regards!

Yong
+
Prashant Kommireddi 2012-10-07, 19:12