Proposing a new syntax to aggregate array elements in a stream way.
Currently, the array is processed as one value unless using CROSS JOIN UNNEST to process array elements individually.
Additional context and related issues
Usage could be
sum(stream(arr))
max(stream(arr))
approx_distinct(stream(arr))
or nested array: max(stream(stream(arr2)))
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:
Description
Proposing a new syntax to aggregate array elements in a stream way. Currently, the array is processed as one value unless using CROSS JOIN UNNEST to process array elements individually.
Additional context and related issues
Usage could be
https://github.com/trinodb/trino/issues/22445
Release notes
( ) This is not user-visible or is docs only, and no release notes are required. ( ) Release notes are required. Please propose a release note for me. ( ) Release notes are required, with the following suggested text: