There are account ids
, each with a timestamp
grouped by username
. foreach of these username groups I want all pairs of (oldest account, other account).
我有一刀切的 reduce子,我能否把它变成一幅简单的script子?
Schema:
{group:username”,A:{(id , Creat_dt)}
投入:
(batman,{(id1,100), (id2,200), (id3,50)})
(lulu ,{(id7,100), (id9,50)})
预期产出:
(batman,{(id3,id1), (id3,id2)})
(lulu ,{(id9,id7)})