max_n_by
aggregates and returns the maximum values and associated data found
across all the aggregated data.
rollup()
Combine multiple MaxNBy aggregates
Since 1.16.0
This aggregate combines the aggregates generated by other