Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Merge records after pivoting

I want to merge the records after pivoting and doing some processing on it.

Eq

Sample input = {a = [1,2,3]} pivot stage (on field 'a') = [{record1:{a:1}},{record2:{a:2}},{record3:{a:3}}]

// Processing on each record

finally merge back the pivoted field (expected merge) = {a : [1,2,3]}

Merge records after pivoting

I want to merge the records after pivoting and doing some processing on it.

EqExample

Sample input = {a = [1,2,3]} [1,2,3]}

pivot stage (on field 'a') = [{record1:{a:1}},{record2:{a:2}},{record3:{a:3}}]

// Processing on each record

finally merge back the pivoted field (expected merge) = {a : [1,2,3]}