标签:
jnd = join a by f1, b by f2;
a = load ‘input1‘; b = load ‘input2‘; jnd = join a by $0, b by $1;
a = load ‘input1‘ as (username, age, city); b = load ‘input2‘ as (orderid, user, city); jnd = join a by (username, city), b by (user, city);
a = load ‘input1‘ as (username, age, address); b = load ‘input2‘ as (orderid, user, money; jnd = join a by username, b by user; result = foreach jnd generate a::username, a::age, address, b::orderid;
a = load ‘input1‘ as (username, age); b = load ‘input2‘ as (orderid, user); c = load ‘input3‘ as (user, acount); jnd = join a by username, b by user, c by user;
a = load ‘input1‘ as (username, age); b = load ‘input2‘ as (orderid, user); jnd = join a by username left outer, b by user; jnd = join a by username right, b by user; jnd = join a by username full, b by user;
a = load ‘data‘ as (node, parentid, name); b = load ‘data‘ as (node, parentid, name); jnd = join a by node, b by parentid;
标签:
原文地址:http://www.cnblogs.com/lishouguang/p/4559602.html