frankgrimes97 commented on code in PR #13887: URL: https://github.com/apache/druid/pull/13887#discussion_r1144757898
########## docs/querying/sql-aggregations.md: ########## @@ -139,6 +139,16 @@ Load the [DataSketches extension](../development/extensions-core/datasketches-ex |`DS_QUANTILES_SKETCH(expr, [k])`|Creates a [Quantiles sketch](../development/extensions-core/datasketches-quantiles.md) on the values of `expr`, which can be a regular column or a column containing quantiles sketches. The `k` parameter is described in the Quantiles sketch documentation.<br/><br/>See the [known issue](sql-translation.md#approximations) with this function.|`'0'` (STRING)| +### Tuple sketch functions + +Load the [DataSketches extension](../development/extensions-core/datasketches-extension.md) to use the following functions. + +|Function|Notes|Default| +|--------|-----|-------| +|`DS_TUPLE_DOUBLES(expr, [nominalEntries])`|Creates a [Tuple sketch](../development/extensions-core/datasketches-tuple.md) on the values of `expr` which is a column containing Tuple sketches which contain an array of double values as their Summary Objects. The `nominalEntries` override parameter is optional and described in the Tuple sketch documentation. Review Comment: I felt adding that information to the descriptions would help clarify things for those familiar with Tuple Data Sketches. FYI, Summary Objects are explained in the Data Sketches documentation: https://datasketches.apache.org/docs/Tuple/TupleOverview.html ArrayOfDoublesSketch is a specialized Tuple Sketch whose Summary Object is an array of double values. Not every Tuple Sketch is a ArrayOfDoublesSketch... different specialized implementations may be added to the Apache Druid codebase in the future. -- 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]
