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_intersect(sketch_a, sketch_b)
sketch_a
sketch_b
VARBINARY
-- 同时出现在群组 A 和群组 B 中的不同用户数 SELECT ds_theta_estimate(ds_theta_intersect(a.sk, b.sk)) FROM cohort_a a JOIN cohort_b b USING (day);