Forum Discussion
bojanvelevski
3 years agoValued Contributor
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
Thank you @bojanvelevski , perfect it is working as expected.
- darshthakkar3 years agoValued Contributor
Thank you @kkishore, can you please mark @bojanvelevski’s suggestion as a Solution so that anybody looking at this thread in the future can refer to the solution directly?
Related Content
- 2 years ago
- 2 years ago
- 2 years ago
- 2 years ago