VARBINARY(紧凑格式)。与 ds_theta_combine 和 ds_theta_estimate 配合使用,可持久化并复用草图。
输出使用标准的 Apache DataSketches C++ 紧凑序列化格式,可被任何 Apache DataSketches 消费者读取。
Note
ds_theta_accumulate 在将输入值传递给 DataSketches 之前会先进行预哈希处理。对由 数据库 累积的草图与外部从相同原始值构建的草图执行集合运算,结果将不正确。请使用 ds_theta_combine、ds_theta_intersect 和 ds_theta_a_not_b 对同一累积路径产生的草图进行集合运算。
语法
expr: 用于汇总不同值的列。