apache pig - Concatenate fields from different relations -


there 2 relations

r1: {f1: chararray, f2: chararray} r2: {f3: chararray, f4: chararray} 

there no unique key in either of relations, number of tuples same.

is there way concatenate corresponding fields of relations output f2, f4 ?

if tuples in right order, can use rank.

r1a = rank r1 * dense; r2a = rank r2 * dense;  r1r2 = join r1a $0, r2a $0; 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

javascript - Bootstrap Popover: iOS Safari strange behaviour -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -