[
https://issues.apache.org/jira/browse/SPARK-54785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Tenedorio resolved SPARK-54785.
--------------------------------------
Fix Version/s: 4.2.0
4.1.2
Resolution: Fixed
Issue resolved by pull request 53548
[https://github.com/apache/spark/pull/53548]
> Add support for binary sketch aggregations in KLL
> -------------------------------------------------
>
> Key: SPARK-54785
> URL: https://issues.apache.org/jira/browse/SPARK-54785
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.1.0, 4.1.1
> Reporter: Christopher Boumalhab
> Assignee: Christopher Boumalhab
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.2.0, 4.1.2
>
>
> This PR introduces three new aggregate functions (`kll_merge_agg_bigint`,
> `kll_merge_agg_float`, `kll_merge_agg_double`) that enable efficient merging
> of multiple KLL sketch binaries across rows. While the existing scalar
> `kll_sketch_merge_*` functions can only merge two sketches at a time, these
> new aggregate variants can merge an arbitrary number of pre-computed sketches
> from different partitions, time windows, or datasets in a single query. This
> is essential for distributed analytics workflows where sketches are computed
> independently and later aggregated to obtain global quantile estimates. The
> implementation follows the same design patterns as the existing KLL aggregate
> functions, accepting an optional k parameter and properly handling NULL
> values.
>
> https://github.com/apache/spark/pull/53548
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]