PERCENTILE_DISC_LC (Lakehouse v2)
Returns the percentile value using a low-cardinality optimized algorithm.
Analyze Syntax
Section titled “Analyze Syntax”func.percentile_disc_lc(0.5)Analyze Examples
Section titled “Analyze Examples”func.percentile_disc_lc(0.5)
┌───────┐│ 72000 │└───────┘SQL Syntax
Section titled “SQL Syntax”PERCENTILE_DISC_LC(0.5)SQL Examples
Section titled “SQL Examples”SELECT PERCENTILE_DISC_LC(0.5) WITHIN GROUP (ORDER BY salary) FROM employees;
┌───────┐│ 72000 │└───────┘