mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
685 B
685 B
toc_priority
| toc_priority |
|---|
| 103 |
anyHeavy
选择一个频繁出现的值,使用heavy hitters 算法。 如果某个值在查询的每个执行线程中出现的情况超过一半,则返回此值。 通常情况下,结果是不确定的。
anyHeavy(column)
参数
column– The column name。
示例
使用 OnTime 数据集,并选择在 AirlineID 列任何频繁出现的值。
查询:
SELECT anyHeavy(AirlineID) AS res
FROM ontime;
结果:
┌───res─┐
│ 19690 │
└───────┘