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)SELECT PERCENTILE_APPROX(response_time, 0.95) FROM requests;
┌───────┐│ 245.3 │└───────┘