jon-wei commented on a change in pull request #6581: Moments Sketch custom 
aggregator
URL: https://github.com/apache/incubator-druid/pull/6581#discussion_r251665018
 
 

 ##########
 File path: 
docs/content/development/extensions-contrib/momentsketch-quantiles.md
 ##########
 @@ -0,0 +1,120 @@
+---
+layout: doc_page
+title: "Moment Sketches for Approximate Quantiles module"
+---
+
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+# MomentSketch Quantiles Sketch module
+
+This module provides Druid aggregators for approximate quantile queries using 
the [momentsketch](https://github.com/stanford-futuredata/momentsketch) 
library. 
+The momentsketch provides coarse quantile estimates with less space and 
aggregation time overheads than traditional sketches, approaching the 
performance of counts and sums by reconstructing distributions from computed 
statistics.
+
+To use this aggregator, make sure you 
[include](../../operations/including-extensions.html) the extension in your 
config file:
+
+```
+druid.extensions.loadList=["druid-momentsketch"]
+```
+
+### Aggregator
+
+The result of the aggregation is a momentsketch that is the union of all 
sketches either built from raw data or read from the segments.
+
+The `momentSketch` aggregator operates over raw data while the 
`momentSketchMerge` aggregator should be used when aggregating pre-computed 
sketches.
+```json
+{
+  "type" : <aggregator_type>,
+  "name" : <output_name>,
+  "fieldName" : <input_name>,
+  "k" : <int>,
+  "compress" : <boolean>
+ }
+```
+
+|property|description|required?|
+|--------|-----------|---------|
+|type|Type of aggregator desired. Either "momentSketch" or "momentSketchMerge" 
|yes|
+|name|A String for the output (result) name of the calculation.|yes|
+|fieldName|A String for the name of the input field (can contain sketches or 
raw numeric values).|yes|
+|k|Parameter that determines the accuracy and size of the sketch. Higher k 
means higher accuracy but more space to store sketches. Usable range is 
generally [3,15] |no, defaults to 13|
+|compress|Flag for whether the aggregator compresses numeric values using 
arcsinh. Can improve robustness to skewed and long-tailed distributions, but 
reduces accuracy slightly on more uniform distributions.|| no, defaults to true
 
 Review comment:
   `distributions.|| no, defaults to true` has a formatting error

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to