PERCENTILE_APPROX (Lakehouse v2)
使用 t-digest 算法返回近似百分位数。
Analyze 语法
Section titled “Analyze 语法”func.percentile_approx(get_column(table, 'response_time'), 0.95)Analyze 示例
Section titled “Analyze 示例”func.percentile_approx(get_column(table, 'response_time'), 0.95)
┌───────┐│ 245.3 │└───────┘SQL 语法
Section titled “SQL 语法”PERCENTILE_APPROX(<response_time>, 0.95)SQL 示例
Section titled “SQL 示例”SELECT PERCENTILE_APPROX(response_time, 0.95) FROM requests;
┌───────┐│ 245.3 │└───────┘