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