Forum Discussion

darshthakkar's avatar
darshthakkar
Valued Contributor
3 years ago
Solved

Routing files from S3

  • Hi @kkishore,

    Group the incoming data by CARRIERCODE & SHIPCARRIERTRACKINGNUM:

    And add the following expression in a mapper after the group by snap:

    $group.map(x=>{[x.DATETIMETYPE+"_DATETIMEVALUE"]:x.DATETIMEVALUE,[x.DATETIMETYPE+"_DATEVALUE"]:x.DATEVALUE}).reduce((acc,curr)=>acc.extend(curr),{}).extend($groupBy)

    Hope this helps,
    Regards

3 Replies