Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
对两个 Apache DataSketches Theta 草图执行集合差运算,返回不同值估计为 |A\B| 的序列化紧凑草图。
|A \ B|
NULL
VARBINARY ds_theta_a_not_b(sketch_a, sketch_b)
sketch_a
sketch_b
VARBINARY
-- 在群组 A 中但未出现在群组 B 中的不同用户数 SELECT ds_theta_estimate(ds_theta_a_not_b(a.sk, b.sk)) FROM cohort_a a JOIN cohort_b b USING (day);