PERCENTILE_UNION (Lakehouse v2)
Returns the union of multiple percentile states.
Analyze Syntax
Section titled “Analyze Syntax”func.percentile_union(<state>)Analyze Examples
Section titled “Analyze Examples”func.percentile_union(get_column(table, 'pct_state'))
┌────────────────┐│ (merged state) │└────────────────┘SQL Syntax
Section titled “SQL Syntax”PERCENTILE_UNION(<state>)SQL Examples
Section titled “SQL Examples”SELECT PERCENTILE_APPROX_RAW(PERCENTILE_UNION(pct_state), 0.5) FROM agg_table;
┌───────┐│ 72500 │└───────┘