Skip to main content
Scalar pairwise union 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. For an aggregate-style union over many sketches at once, use ds_theta_combine.

Syntax

  • sketch_a, sketch_b: VARBINARY compact theta sketches.

Examples

Keywords

DS_THETA_UNION, DS_THETA_INTERSECT, DS_THETA_A_NOT_B, DS_THETA_COMBINE