Skip to content

Returns an approximate percentile value from a precomputed percentile state.

func.percentile_approx_raw(<state>, <percentile>)
func.percentile_approx_raw(get_column(table, 'pct_state'), 0.95)
┌───────┐
245.3
└───────┘
PERCENTILE_APPROX_RAW(<state>, <percentile>)
SELECT PERCENTILE_APPROX_RAW(pct_state, 0.95) FROM agg_table;
┌───────┐
245.3
└───────┘