选择一个关系所有字段&从pig join上的其他关系中选择一个或两个,如何?

am46iovg  于 2021-06-04  发布在  Hadoop
关注(0)|答案(1)|浏览(511)
A = load '$input1' using pigStorage() AS (a,b,c,d,e)
B = load '$input2' using pigStorage() AS (a,b1,c1,d1,e1)
C = JOIN A by a, B by a; 
D = do something;

“d”的格式应为(a、b、c、d、e、b1)
如何做到这一点?

2izufjch

2izufjch1#

D = FOREACH C GENERATE A::a .. A::e, B::b AS b1;

相关问题