vtlim commented on code in PR #13819:
URL: https://github.com/apache/druid/pull/13819#discussion_r1122396533


##########
docs/development/extensions-core/datasketches-tuple.md:
##########
@@ -207,3 +207,39 @@ Returns a human-readable summary of a given 
ArrayOfDoublesSketch. This is a stri
   "field"  : <post aggregator that refers to an ArrayOfDoublesSketch 
(fieldAccess or another post aggregator)>
 }
 ```
+
+
+### Constant ArrayOfDoublesSketch 
+
+This post aggregator adds a Base64-encoded constant ArrayOfDoublesSketch value 
that you can use in other post aggregators.
+```json
+{
+  "type": "arrayOfDoublesSketchConstant",
+  "name": DESTINATION_COLUMN_NAME,
+  "value": CONSTANT_SKETCH_VALUE
+}
+```
+
+### Base64 output of ArrayOfDoublesSketch 
+
+This post aggregator outputs an ArrayOfDoublesSketch as a Base64-encoded 
string storing the constant tuple sketch value that you can use in other post 
aggregators. 
+
+```json
+{
+  "type": "arrayOfDoublesSketchToBase64String",
+  "name": DESTINATION_COLUMN_NAME,
+  "field": <post aggregator that refers to a ArrayOfDoublesSketch (fieldAccess 
or another post aggregator)>
+}
+```
+
+### Estimated metrics values for each column of ArrayOfDoublesSketch
+
+This post aggregator returns a list of estimated sum for each metric value 
from a given ArrayOfDoublesSketch. The result is _N_ double values, where _N_ 
is the number of double values kept in the sketch per key.

Review Comment:
   Thanks for clarifying @anshu-makkar. Suggested wording, if this is accurate:
   
   `````suggestion
   For the key-value pairs in the given ArrayOfDoublesSketch, this post 
aggregator estimates the sum for each set of values across the keys. For 
example, the post aggregator returns `{3.0, 8.0}` for the following key-value 
pairs:
   
   ```
   Key_1, {1.0, 3.0}
   Key_2, {2.0, 5.0}
   ```
   
   The post aggregator returns _N_ double values, where _N_ is the number of 
values associated with each key.
   `````



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to