vennila ramasamy
05/12/2023, 2:45 PMscottvonduhn
05/12/2023, 3:16 PMconst key = [subsidiary, transactionperiod].join('|');
then write that key and any values needed for the JE as an object at the end of the map function:
context.write(key, valuesObject);
you’ll then have access to an array of values in reduce, grouped by each individual key.
you’ll just have to split the key back into its separate values:
const [subsidiary, transactionperiod] = context.key.split('|');
reptar
05/12/2023, 4:10 PMrun
and each
or runPaged
with forEach
. Something along those lines. This is just basic search processing and I'm sure you've done this. On top of this, from previous discussions it seems you need to spend some time learning doing various things related to JSON
.reptar
05/12/2023, 4:13 PMraghav
05/12/2023, 5:42 PMreptar
05/12/2023, 6:33 PMJSON.parse
in MAP.reptar
05/12/2023, 6:39 PMscottvonduhn
05/12/2023, 7:13 PMreptar
05/12/2023, 7:18 PM