terascope / teraslice

Scalable data processing pipelines in JavaScript
https://terascope.github.io/teraslice/
Apache License 2.0
50 stars 13 forks source link

add mergeBy aggregation #3438

Closed lesleydreyer closed 1 year ago

lesleydreyer commented 1 year ago

MergeBy merges unique values from the specified fields together into a single record... if there are multiple values for the same field, the merged record will be the last value in the list of records.

Decided to not allow a frame to call groupBy and mergeBy in the same aggregation for now because would need to know whether to allow other aggregations (sum, count, select, etc) on both or just one and currently you can call those before or after groupBy so we would need to rework