highestMax() 函数
highestMax()
从每个输入表中选择指定 column
中值最高的记录,并返回最高的 n
个记录。
注意: highestMax()
会删除空表。
函数类型签名
(<-tables: stream[A], n: int, ?column: string, ?groupColumns: [string]) => stream[A] where A: Record
更多信息,请参见 函数类型签名。
参数
n
(必需) 要返回的记录数。
column
要评估的列。默认为 _value
。
groupColumns
要分组的列的列表。默认为 []
。
tables
输入数据。默认为管道转发数据 (<-
)。
示例
从表流中返回最高的两个值
import "sampledata"
sampledata.int()
|> highestMax(n: 2, groupColumns: ["tag"])
此页是否对您有所帮助?
感谢您的反馈!