experimental.distinct() 函数
experimental.distinct()
是 随时可能更改的实验性软件包。
experimental.distinct()
从 _value
列返回唯一值。
每个输出记录的 _value
设置为指定列中的一个唯一值。null
被视为一个唯一值。
experimental.distinct()
删除不在分组键中的所有列,并删除空表。
函数类型签名
(<-tables: stream[{A with _value: B}]) => stream[{A with _value: B}]
有关更多信息,请参阅 函数类型签名。
参数
tables
输入数据。 默认为管道转发数据 (<-
)。
示例
从每个输入表返回不同的值
import "experimental"
import "sampledata"
sampledata.int(includeNull: true)
|> experimental.distinct()
此页是否对您有帮助?
感谢您的反馈!