Solved
Forum Discussion
bojanvelevski
4 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
- kkishore4 years agoNew Contributor III
Thank you @bojanvelevski , perfect it is working as expected.
- darshthakkar4 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?