You are viewing documentation about an older version (1.1.0). View latest version

snowflake.snowpark.functions.approx_percentile_combine

snowflake.snowpark.functions.approx_percentile_combine(state: ColumnOrName) Column[source]

Combines (merges) percentile input states into a single output state. This allows scenarios where APPROX_PERCENTILE_ACCUMULATE is run over horizontal partitions of the same table, producing an algorithm state for each table partition. These states can later be combined using APPROX_PERCENTILE_COMBINE, producing the same output state as a single run of APPROX_PERCENTILE_ACCUMULATE over the entire table.