Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

APPROX_COUNT_DISTINCT_ACCUMULATE

The APPROX_COUNT_DISTINCT_ACCUMULATE() function creates a new HyperLogLog state and returns a value representing the new state for a collection of values.

Syntax

APPROX_COUNT_DISTINCT_ACCUMULATE ( expr )

Arguments

expr

An expression evaluating to a scalar value.

expr is typically the name of a column. In this case, APPROX_COUNT_DISTINCT_ACCUMULATE uses values in the column to create a new HyperLogLog state.

Remarks

This function is used in conjunction with APPROX_COUNT_DISTINCT_COMBINE and APPROX_COUNT_DISTINCT_ESTIMATE. To best understand its usage, see the topic Distinct Count Estimation Functions.

Last modified:

Was this article helpful?