Skip to content

Returns the union of multiple percentile states.

func.percentile_union(<state>)
func.percentile_union(get_column(table, 'pct_state'))
┌────────────────┐
│ (merged state) │
└────────────────┘
PERCENTILE_UNION(<state>)
SELECT PERCENTILE_APPROX_RAW(PERCENTILE_UNION(pct_state), 0.5) FROM agg_table;
┌───────┐
72500
└───────┘