这是表格描述的转储:
A = LOAD '/tmp/all.csv' as (cmd:chararray,q1:int,q2:int,q3:int);
R = LOAD '/tmp/raw.csv' as (cmd:chararray,duration:int);
A: {cmd: chararray,q1: int,q2: int,q3: int}
R: {cmd: chararray,duration: int}
J: {A::cmd: chararray,A::q1: int,A::q2: int,A::q3: int,R::cmd: chararray,R::duration: int}
以下是A和R表:
=== A ==-=
A,5,10,20
B,25,50,75
=== R ===
A,6
A,12
A,22
B,30
B,55
B,80
我通过以下命令加入:
J = join A BY cmd, R BY cmd;
这看起来很简单,但是当我转储表J时,它总是返回空/ null。
DUMP J;
Output(s):
Successfully stored 0 records in
知道我可能缺少什么吗?