Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
7.3.1
-
None
-
None
Description
It would be nice to have a reduce operation that lets you collect the values of a field from the group of tuples into an array.
Something that transforms { "k1": "1", "k2": ["a", "b"] }, { "k1": "2", "k2": ["c", "d"] }, { "k1": "2", "k2": ["e", "f"] } into { "k1": "1", "k2": ["a", "b"] }, { "k1": "2", "k2": ["c", "d", "e", "f"] }
and
{ "k1": "1", "k2": "a" }, { "k1": "2", "k2": "b" }, { "k1": "2", "k2": "c" } into { "k1": "1", "k2": ["a"] }, { "k1": "2", "k2": ["b", "c"] }