Skip to main content
Scalar pairwise intersection of two serialized Apache DataSketches Theta sketches. Returns a single serialized compact sketch whose distinct count estimates |A ∩ B|. Returns NULL if either input is NULL. Unlike HyperLogLog sketches, theta sketches preserve enough state to support intersection, which is what makes this operation possible without storing the underlying values.

Syntax

  • sketch_a, sketch_b: VARBINARY compact theta sketches.

Examples

Keywords

DS_THETA_INTERSECT, DS_THETA_UNION, DS_THETA_A_NOT_B