groupArraySample
Introduced in: v20.3.0 Creates an array of sample argument values. The size of the resulting array is limited tomax_size elements.
Argument values are selected and added to the array randomly.
Syntax
max_sizeโ Maximum size of the resulting array.UInt64seedโ Optional. Seed for the random number generator. Default value: 123456.UInt64xโ Argument (column name or expression).Any
array_columnโ Column containing arrays to be aggregated.Array
Array(T)
Examples
Usage example
Query
Response
Query
Response
Query
Response