Skip to main content
Scalar set difference of two serialized Apache DataSketches Theta sketches. Returns a serialized compact sketch whose distinct count estimates |A \ B| (elements in A but not in B). Returns NULL if either input is NULL.

Syntax

  • sketch_a, sketch_b: VARBINARY compact theta sketches.

Examples

Keywords

DS_THETA_A_NOT_B, DS_THETA_UNION, DS_THETA_INTERSECT