druid/docs/content/development/extensions-core/datasketches-extension.md
David Lim afb239b17a add missing license headers, in particular to MD files; clean up RAT … (#6563)
* add missing license headers, in particular to MD files; clean up RAT exclusions

* revert inadvertent doc changes

* docs

* cr changes

* fix modified druid-production.svg
2018-11-13 09:38:37 -08:00

2.0 KiB


layout: doc_page

DataSketches extension

Druid aggregators based on datasketches library. Sketches are data structures implementing approximate streaming mergeable algorithms. Sketches can be ingested from the outside of Druid or built from raw data at ingestion time. Sketches can be stored in Druid segments as additive metrics.

To use the datasketches aggregators, make sure you include the extension in your config file:

druid.extensions.loadList=["druid-datasketches"]

The following modules are available:

  • Theta sketch - approximate distinct counting with set operations (union, intersection and set difference).
  • Tuple sketch - extension of Theta sketch to support values associated with distinct keys (arrays of numeric values in this specialized implementation).
  • Quantiles sketch - approximate distribution of comparable values to obtain ranks, quantiles and histograms. This is a specialized implementation for numeric values.
  • HLL sketch - approximate distinct counting using very compact HLL sketch.