timeSeriesGroupArray
按时间戳升序排序时间序列。
语法
参数
timestamp
- 样本的时间戳value
- 与timestamp
对应的时间序列值
返回值
该函数返回一个元组数组(timestamp
, value
),按 timestamp
升序排序。
如果同一 timestamp
有多个值,则该函数选择其中最大的值。
示例
响应:
还可以将多个时间戳和对应值作为相同大小的数组传递。使用数组参数的相同查询:
备注
此函数是实验性的,通过设置 allow_experimental_ts_to_grid_aggregate_function=true
启用它。