Ask Your Question
1

Merge records after pivoting

asked 2019-03-18 03:34:40 -0600

divyang gravatar image

updated 2019-03-18 03:35:20 -0600

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

Example

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]}

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-03-19 10:18:07 -0600

metadaddy gravatar image

See this answer for merging multiple records into one.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-03-18 03:34:40 -0600

Seen: 135 times

Last updated: Mar 19