Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
用于计算一组时间间隔彼此相交的最大次数的聚合函数(前提是所有时间间隔至少有一次相交)。
maxIntersections(start_column, end_column)
start_column
NULL
(U)Int*
Float*
end_column
UInt64
CREATE TABLE my_events ( start UInt32, end UInt32 ) ENGINE = MergeTree ORDER BY tuple(); INSERT INTO my_events VALUES (1, 3), (1, 6), (2, 5), (3, 7); SELECT maxIntersections(start, end) FROM my_events;
┌─maxIntersections(start, end)─┐ │ 3 │ └──────────────────────────────┘
此页面对您有帮助吗?