Skip to main content
Scalar function that returns the approximate distinct count summarized by a serialized Apache DataSketches Theta sketch (VARBINARY, compact form). One output row per input row. Accepts any sketch written in the standard Apache DataSketches C++ compact theta format with the default hash seed, including sketches produced by: Returns NULL for NULL input. Returns 0 for an empty sketch.

Syntax

  • sketch: VARBINARY compact theta sketch.

Examples

Keywords

DS_THETA_ESTIMATE, DS_THETA_ACCUMULATE, DS_THETA_COMBINE, DS_THETA_COUNT_DISTINCT