timeSeriesGroupArray
Introduced in: v25.8.0 Sorts time series data by timestamp in ascending order. The samples can be passed in one of three forms:- as two arguments
timestampandvalue, where each row holds a single sample; - as two arrays of timestamps and values, where each row holds a whole time series;
- as a single array of
(timestamp, value)tuples, where each row holds a whole time series. This form has the same type as the result, which allows using the function in theSimpleAggregateFunctiondata type.
This function is experimental, enable it by setting
allow_experimental_time_series_aggregate_functions=true.timestamp— Timestamp of the sample. Can be an individual value or an array.UInt32orDateTimeorDateTime64orArray(UInt32)orArray(DateTime)orArray(DateTime64)value— Value of the time series corresponding to the timestamp. Can be an individual value or an array.Float*orArray(Float*)samples— Samples of the time series passed as an array of tuples(timestamp, value), where the tuple elements have the timestamp and value types listed above.Array(Tuple(T1, T2))
(timestamp, value) sorted by timestamp in ascending order. Array(Tuple(T1, T2))
Examples
Basic usage with individual values
Query
Response
Query
Response