highestCurrent() 函数
highestCurrent() 从每个输入表中选择最后一条记录,并返回最高的 n 条记录。
注意: highestCurrent() 会删除空表。
函数类型签名
(<-tables: stream[A], n: int, ?column: string, ?groupColumns: [string]) => stream[A] where A: Record
有关更多信息,请参见 Function type signatures。
参数
n
(必需) 返回的记录数。
列
要评估的列。默认值是 _value。
分组列
按列分组的列表。默认值是 []。
表格
输入数据。默认是管道转发数据 (<-).
示例
从表格流中返回当前最高值
import "sampledata"
sampledata.int()
|> highestCurrent(n: 1, groupColumns: ["tag"])