expr and returns the sketch
serialized as VARBINARY (compact form). Pair with ds_theta_combine
and ds_theta_estimate to materialize and reuse sketches.
The output uses the standard Apache DataSketches C++ compact serialization format,
compatible with any Apache DataSketches consumer.
Note
ds_theta_accumulate pre-hashes input values before passing them to DataSketches.
Set operations between StarRocks-accumulated sketches and sketches built externally
from the same raw values will not produce correct results due to this hash difference.
Use ds_theta_combine, ds_theta_intersect, and ds_theta_a_not_b to operate on
sketches that were all produced by the same accumulation path.
Syntax
expr: column whose distinct values are summarized.