Module count_hash

Source
Expand description

CountHash / count_hash is a hash-based approximate distinct count function.

It is a variant of CountDistinct that uses a hash function to approximate the distinct count. It is designed to be more efficient than CountDistinct for large datasets, but it is not as accurate, as the hash value may be collision.

Structsยง

CountHash
CountHashAccumulator ๐Ÿ”’
CountHashGroupAccumulator
GroupsAccumulator for count_hash aggregate function

Constantsยง

RANDOM_SEED_0 ๐Ÿ”’
RANDOM_SEED_1 ๐Ÿ”’
RANDOM_SEED_2 ๐Ÿ”’
RANDOM_SEED_3 ๐Ÿ”’

Type Aliasesยง

HashValueType ๐Ÿ”’