Expand description
Two UDAFs are implemented for HyperLogLog:
hll: Accepts a string column and aggregates the values into a HyperLogLog state.hll_merge: Accepts a binary column of states generated byhlland merges them into a single state.
The states can be then used to estimate the cardinality of the
values in the column by hll_count UDF.