HLL_COMBINE

functionsupportedCore SQL functions

docs.snowflake.com ↗

Aggregate functionsWindow functions

Combines (merges) input states into a single output state. This allows scenarios where HLL_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 HLL_COMBINE, producing the same output state as a single run of HLL_ACCUMULATE over the entire table.

Syntax

supportedpartialnot supportednot scored

Aggregate function

HLL_COMBINE( [ DISTINCT ] <state> )

Window function

HLL_COMBINE( [ DISTINCT ] <state> ) OVER ( [ PARTITION BY <expr1> ] )

Parameters

NameRequiredDescription
staterequiredAn expression that contains state information generated by a call to HLL_ACCUMULATE.

Usage notes

See also

Referenced by