frankgrimes97 commented on code in PR #13887: URL: https://github.com/apache/druid/pull/13887#discussion_r1142476374
########## docs/querying/sql-functions.md: ########## @@ -136,6 +136,42 @@ Returns an array of all values of the specified expression. Concatenates array inputs into a single array. +## ARRAY_OF_DOUBLES_SKETCH + +`ARRAY_OF_DOUBLES_SKETCH(expr, [nominalEntries])` + +`ARRAY_OF_DOUBLES_SKETCH(dimensionColumnExpr, metricColumnExpr, ..., [nominalEntries])` + +**Function type:** [Aggregation](sql-aggregations.md) + +Creates a Tuple sketch. + +## ARRAY_OF_DOUBLES_SKETCH_INTERSECT + +`ARRAY_OF_DOUBLES_SKETCH_INTERSECT(expr, ..., [nominalEntries])` + +**Function type:** [Scalar, sketch](sql-scalar.md#tuple-sketch-functions) + +## ARRAY_OF_DOUBLES_SKETCH_NOT Review Comment: The `NOT` is done against a hash value (the keys in this case, similar to Theta Sketch) and will just preserve both the key and its associated Summary Object (in this case, an array of double values) Both `UNION` and `INTERSECT` add the values in the associated Summary Objects (e.g. `a[0] + b[0]` if the array has `length == 1`. -- 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]
