This is an automated email from the ASF dual-hosted git repository.
victoria pushed a commit to branch 32.0.0
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/32.0.0 by this push:
new cf947fc0932 [Docs] Move T-Digest function docs (#17685)
cf947fc0932 is described below
commit cf947fc093257b2188a0cfa94e62ed1824171580
Author: Jill Osborne <[email protected]>
AuthorDate: Mon Feb 3 19:03:52 2025 +0000
[Docs] Move T-Digest function docs (#17685)
Co-authored-by: Victoria Lim <[email protected]>
---
.../extensions-contrib/tdigestsketch-quantiles.md | 24 ++++++++++++++++++++++
docs/querying/sql-functions.md | 16 ---------------
2 files changed, 24 insertions(+), 16 deletions(-)
diff --git a/docs/development/extensions-contrib/tdigestsketch-quantiles.md
b/docs/development/extensions-contrib/tdigestsketch-quantiles.md
index 59b5a851c10..101368445d8 100644
--- a/docs/development/extensions-contrib/tdigestsketch-quantiles.md
+++ b/docs/development/extensions-contrib/tdigestsketch-quantiles.md
@@ -149,3 +149,27 @@ Similar to quantilesFromTDigestSketch except it takes in a
single fraction for c
|name|A String for the output (result) name of the calculation.|yes|
|field|A field reference pointing to the field aggregated/combined T-Digest
sketch.|yes|
|fraction|Decimal value between 0 and 1|yes|
+
+### SQL functions
+
+Once you load the T-Digest extension, you can use the following SQL functions.
+
+#### TDIGEST_GENERATE_SKETCH
+
+Builds a T-Digest sketch on values produced by an expression.
+Compression parameter (default value 100) determines the accuracy and size of
the sketch.
+Higher compression provides higher accuracy but requires more storage space.
+
+* **Syntax**: `TDIGEST_GENERATE_SKETCH(expr, [compression])`
+* **Default**: Empty Base64-encoded T-Digest sketch string
+* **Function type**: [Aggregation](../../querying/sql-aggregations.md)
+
+#### TDIGEST_QUANTILE
+
+Builds a T-Digest sketch on values produced by an expression and returns the
value for the quantile.
+Compression parameter (default value 100) determines the accuracy and size of
the sketch.
+Higher compression provides higher accuracy but requires more storage space.
+
+* **Syntax**: `TDIGEST_QUANTILE(expr, quantileFraction, [compression])`
+* **Default**: `Double.NaN`
+* **Function type**: [Aggregation](../../querying/sql-aggregations.md)
diff --git a/docs/querying/sql-functions.md b/docs/querying/sql-functions.md
index 666e06d548d..f70d20a7aa7 100644
--- a/docs/querying/sql-functions.md
+++ b/docs/querying/sql-functions.md
@@ -1468,22 +1468,6 @@ Calculates the sum of a set of values.
Calculates the trigonometric tangent of an angle expressed in radians.
-## TDIGEST_GENERATE_SKETCH
-
-`TDIGEST_GENERATE_SKETCH(expr, [compression])`
-
-**Function type:** [Aggregation](sql-aggregations.md)
-
-Generates a T-digest sketch from values of the specified expression.
-
-## TDIGEST_QUANTILE
-
-`TDIGEST_QUANTILE(expr, quantileFraction, [compression])`
-
-**Function type:** [Aggregation](sql-aggregations.md)
-
-Returns the quantile for the specified fraction from a T-Digest sketch
constructed from values of the expression.
-
## TEXTCAT
`TEXTCAT(<CHARACTER>, <CHARACTER>)`
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]