You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support centroids config for approx_percentile_cont_with_weight (#17003)
* Support centroids config for `approx_percentile_cont_with_weight`
* Match two functions' signature
* Update docs
* Address comments and unify centroids config
description = "Percentile to compute. Must be a float value between 0 and 1 (inclusive)."
97
+
),
98
+
argument(
99
+
name = "centroids",
100
+
description = "Number of centroids to use in the t-digest algorithm. _Default is 100_. A higher number results in more accurate approximation but requires more memory."
70
101
)
71
102
)]
72
103
pubstructApproxPercentileContWithWeight{
@@ -91,21 +122,26 @@ impl Default for ApproxPercentileContWithWeight {
91
122
implApproxPercentileContWithWeight{
92
123
/// Create a new [`ApproxPercentileContWithWeight`] aggregate function.
| avg(expr) | Сalculates the average value for `expr`. |
291
-
| approx_distinct(expr) | Calculates an approximate count of the number of distinct values for `expr`. |
292
-
| approx_median(expr) | Calculates an approximation of the median for `expr`. |
293
-
| approx_percentile_cont(expr, percentile) | Calculates an approximation of the specified `percentile` for `expr`. |
294
-
| approx_percentile_cont_with_weight(expr, weight_expr, percentile) | Calculates an approximation of the specified `percentile` for `expr` and `weight_expr`. |
295
-
| bit_and(expr) | Computes the bitwise AND of all non-null input values for `expr`. |
296
-
| bit_or(expr) | Computes the bitwise OR of all non-null input values for `expr`. |
297
-
| bit_xor(expr) | Computes the bitwise exclusive OR of all non-null input values for `expr`. |
298
-
| bool_and(expr) | Returns true if all non-null input values (`expr`) are true, otherwise false. |
299
-
| bool_or(expr) | Returns true if any non-null input value (`expr`) is true, otherwise false. |
300
-
| count(expr) | Returns the number of rows for `expr`. |
301
-
| count_distinct | Creates an expression to represent the count(distinct) aggregate function |
302
-
| cube(exprs) | Creates a grouping set for all combination of `exprs`|
303
-
| grouping_set(exprs) | Create a grouping set. |
304
-
| max(expr) | Finds the maximum value of `expr`. |
305
-
| median(expr) | Сalculates the median of `expr`. |
306
-
| min(expr) | Finds the minimum value of `expr`. |
307
-
| rollup(exprs) | Creates a grouping set for rollup sets. |
| avg(expr) | Сalculates the average value for `expr`.|
291
+
| approx_distinct(expr) | Calculates an approximate count of the number of distinct values for `expr`.|
292
+
| approx_median(expr) | Calculates an approximation of the median for `expr`.|
293
+
| approx_percentile_cont(expr, percentile[, centroids]) | Calculates an approximation of the specified `percentile` for `expr`. Optional `centroids` parameter controls accuracy (default: 100). |
294
+
| approx_percentile_cont_with_weight(expr, weight_expr, percentile[, centroids]) | Calculates an approximation of the specified `percentile` for `expr` and `weight_expr`. Optional `centroids` parameter controls accuracy (default: 100). |
295
+
| bit_and(expr) | Computes the bitwise AND of all non-null input values for `expr`.|
296
+
| bit_or(expr) | Computes the bitwise OR of all non-null input values for `expr`.|
297
+
| bit_xor(expr) | Computes the bitwise exclusive OR of all non-null input values for `expr`.|
298
+
| bool_and(expr) | Returns true if all non-null input values (`expr`) are true, otherwise false.|
299
+
| bool_or(expr) | Returns true if any non-null input value (`expr`) is true, otherwise false.|
300
+
| count(expr) | Returns the number of rows for `expr`.|
301
+
| count_distinct | Creates an expression to represent the count(distinct) aggregate function|
302
+
| cube(exprs) | Creates a grouping set for all combination of `exprs`|
303
+
| grouping_set(exprs) | Create a grouping set.|
304
+
| max(expr) | Finds the maximum value of `expr`.|
305
+
| median(expr) | Сalculates the median of `expr`.|
306
+
| min(expr) | Finds the minimum value of `expr`.|
307
+
| rollup(exprs) | Creates a grouping set for rollup sets.|
0 commit comments