Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ClickHouse launches Claude-powered Agents and House Mates partner program at Open House 2026 Read more →
计算一组值中最左侧点与最右侧点之间斜率的聚合函数。
boundingRatio(x, y)
x
(U)Int*
Float*
Decimal
y
NaN
Float64
SELECT number, number * 1.5 FROM numbers(10)
┌─number─┬─multiply(number, 1.5)─┐ │ 0 │ 0 │ │ 1 │ 1.5 │ │ 2 │ 3 │ │ 3 │ 4.5 │ │ 4 │ 6 │ │ 5 │ 7.5 │ │ 6 │ 9 │ │ 7 │ 10.5 │ │ 8 │ 12 │ │ 9 │ 13.5 │ └────────┴───────────────────────┘
SELECT boundingRatio(number, number * 1.5) FROM numbers(10)
┌─boundingRatio(number, multiply(number, 1.5))─┐ │ 1.5 │ └──────────────────────────────────────────────┘
此页面对您有帮助吗?