【问题标题】:Druid Default Distinct Approximation AlgorithmDruid 默认不同逼近算法
【发布时间】:2020-09-03 15:39:12
【问题描述】:

有没有办法在 Druid 中使用 ThetaSketch 修改默认的 HLL 近似算法?因此,在查询 count distinct 时,druid 默认使用 ThetaSketch 而不是 HLL。

【问题讨论】:

    标签: druid hyperloglog


    【解决方案1】:

    我相信您需要在查询时明确说明,例如使用 APPROX_COUNT_DISTINCT_DS_THETAAPPROX_COUNT_DISTINCT_DS_HLL

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-15
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-21
      • 2015-08-29
      • 1970-01-01
      相关资源
      最近更新 更多