timeSeriesGroupArray
timeSeriesGroupArray
Introduced in: v25.9
Sorts time series data by timestamp in ascending order.
Note
This function is experimental, enable it by setting allow_experimental_ts_to_grid_aggregate_function=true.
Syntax
Arguments
timestamp— Timestamp of the sample.DateTimeorUInt32orUInt64value— Value of the time series corresponding to the timestamp.(U)Int*orFloat*orDecimal
Returned value
Returns an array of tuples (timestamp, value) sorted by timestamp in ascending order. If there are multiple values for the same timestamp then the function chooses the greatest of these values. Array(Tuple(T1, T2))
Examples
Basic usage with individual values
Passing multiple samples of timestamps and values as arrays of equal size