PERCENTILE_APPROX (Lakehouse v2)
Returns an approximate percentile value using the t-digest algorithm.
Analyze Syntax
Section titled “Analyze Syntax”func.percentile_approx(get_column(table, 'response_time'), 0.95)Analyze Examples
Section titled “Analyze Examples”func.percentile_approx(get_column(table, 'response_time'), 0.95)
┌───────┐│ 245.3 │└───────┘SQL Syntax
Section titled “SQL Syntax”PERCENTILE_APPROX(<response_time>, 0.95)SQL Examples
Section titled “SQL Examples”SELECT PERCENTILE_APPROX(response_time, 0.95) FROM requests;
┌───────┐│ 245.3 │└───────┘