简体   繁体   中英

Druid Default Distinct Approximation Algorithm

Is there a way to modify the default HLL approximation algorithm with ThetaSketch in Druid? So that while querying for count distinct, druid by default uses ThetaSketch instead of HLL.

I believe you need to be explicit at query time, eg using APPROX_COUNT_DISTINCT_DS_THETA versus APPROX_COUNT_DISTINCT_DS_HLL

https://druid.apache.org/docs/latest/querying/sql.html#aggregation-functions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM