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
{"func(x[, y1, ..., yN])", "Optional. A lambda function which operates on elements of the source array (`x`) and condition arrays (`y`). [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
457
-
{"source", "The source array to process [`Array(T)`](/sql-reference/data-types/array)."},
458
-
{"[, cond1, ... , condN]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
457
+
{"source_arr", "The source array to process [`Array(T)`](/sql-reference/data-types/array)."},
458
+
{"[, cond1_arr, ... , condN_arr]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
459
459
};
460
460
FunctionDocumentation::ReturnedValue returned_value_min = "Returns the minimum element in the source array, or the minimum element of the lambda results if provided.";
461
461
FunctionDocumentation::Examples examples_min = {
@@ -473,11 +473,11 @@ Returns the maximum element in the source array.
473
473
474
474
If a lambda function `func` is specified, returns the maximum element of the lambda results.
{"func(x[, y1, ..., yN])", "Optional. A lambda function which operates on elements of the source array (`x`) and condition arrays (`y`). [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
479
-
{"source", "The source array to process. [`Array(T)`](/sql-reference/data-types/array)."},
480
-
{"[, cond1, ... , condN]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
479
+
{"source_arr", "The source array to process. [`Array(T)`](/sql-reference/data-types/array)."},
480
+
{"[, cond1_arr, ... , condN_arr]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
481
481
};
482
482
FunctionDocumentation::ReturnedValue returned_value_max = "Returns the maximum element in the source array, or the minimum element of the lambda results if provided.";
483
483
FunctionDocumentation::Examples examples_max = {
@@ -495,11 +495,11 @@ Returns the sum of elements in the source array.
495
495
496
496
If a lambda function `func` is specified, returns the sum of elements of the lambda results.
{"func(x[, y1, ..., yN])", "Optional. A lambda function which operates on elements of the source array (`x`) and condition arrays (`y`). [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
501
-
{"source", "The source array to process. [`Array(T)`](/sql-reference/data-types/array)."},
502
-
{"[, cond1, ... , condN]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
501
+
{"source_arr", "The source array to process. [`Array(T)`](/sql-reference/data-types/array)."},
502
+
{"[, cond1_arr, ... , condN_arr]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
503
503
};
504
504
FunctionDocumentation::ReturnedValue returned_value_sum = "Returns the sum of elements in the source array, or the sum of elements of the lambda results if provided.";
505
505
FunctionDocumentation::Examples examples_sum = {
@@ -517,11 +517,11 @@ Returns the average of elements in the source array.
517
517
518
518
If a lambda function `func` is specified, returns the average of elements of the lambda results.
{"func(x[, y1, ..., yN])", "Optional. A lambda function which operates on elements of the source array (`x`) and condition arrays (`y`). [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
523
-
{"source", "The source array to process. [`Array(T)`](/sql-reference/data-types/array)."},
524
-
{"[, cond1, ... , condN]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
523
+
{"source_arr", "The source array to process. [`Array(T)`](/sql-reference/data-types/array)."},
524
+
{"[, cond1_arr, ... , condN_arr]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
525
525
};
526
526
FunctionDocumentation::ReturnedValue returned_value_avg = "Returns the average of elements in the source array, or the average of elements of the lambda results if provided. [`Float64`](/sql-reference/data-types/float).";
527
527
FunctionDocumentation::Examples examples_avg = {
@@ -539,11 +539,11 @@ Returns the product of elements in the source array.
539
539
540
540
If a lambda function `func` is specified, returns the product of elements of the lambda results.
{"func(x[, y1, ..., yN])", "Optional. A lambda function which operates on elements of the source array (`x`) and condition arrays (`y`). [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
545
-
{"source", "The source array to process [`Array(T)`](/sql-reference/data-types/array)."},
546
-
{"[, cond1, ... , condN]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
545
+
{"source_arr", "The source array to process [`Array(T)`](/sql-reference/data-types/array)."},
546
+
{"[, cond1_arr, ... , condN_arr]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
547
547
};
548
548
FunctionDocumentation::ReturnedValue returned_value_prod = "Returns the product of elements in the source array, or the product of elements of the lambda results if provided. [`Float64`](/sql-reference/data-types/float).";
{"func(x[, y1, ..., yN])", "A lambda function which operates on elements of the source array (`x`) and condition arrays (`y`). [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
72
-
{"source", "The source array to process. [`Array(T)`](/sql-reference/data-types/array)."},
73
-
{"[, cond1, ... , condN]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."}
72
+
{"source_arr", "The source array to process. [`Array(T)`](/sql-reference/data-types/array)."},
73
+
{"[, cond1_arr, ... , condN_arr]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."}
74
74
};
75
75
FunctionDocumentation::ReturnedValue returned_value = "Returns `1` if the lambda function returns true for all elements, `0` otherwise. [`UInt8`](/sql-reference/data-types/int-uint).";
Returns the number of elements for which `func(arr1[i], ..., arrN[i])` returns something other than `0`.
85
+
Returns the number of elements for which `func(arr1[i], ..., arrN[i])` returns true.
86
86
If `func` is not specified, it returns the number of non-zero elements in the array.
87
87
88
88
`arrayCount` is a [higher-order function](/sql-reference/functions/overview#higher-order-functions).
@@ -92,7 +92,7 @@ If `func` is not specified, it returns the number of non-zero elements in the ar
92
92
{"func", "Function to apply to each element of the array(s). Optional. [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)"},
FunctionDocumentation::ReturnedValue returned_value = "Returns the number of elements for which `func` returns something other than `0`. Otherwise, returns the number of non-zero elements in the array.";
95
+
FunctionDocumentation::ReturnedValue returned_value = "Returns the number of elements for which `func` returns true. Otherwise, returns the number of non-zero elements in the array.";
96
96
FunctionDocumentation::Examples example = {{"Usage example", "SELECT arrayCount(x -> (x % 2), groupArray(number) FROM numbers(10)", "5"}};
{"func(x[, y1, ..., yN])", "A lambda function which operates on elements of the source array (`x`) and condition arrays (`y`). [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
73
-
{"source", "The source array to process. [`Array(T)`](/sql-reference/data-types/array)."},
74
-
{"[, cond1, ... , condN]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."}
73
+
{"source_arr", "The source array to process. [`Array(T)`](/sql-reference/data-types/array)."},
74
+
{"[, cond1_arr, ... , condN_arr]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."}
75
75
};
76
76
FunctionDocumentation::ReturnedValue returned_value = "Returns `1` if the lambda function returns true for at least one element, `0` otherwise. [`UInt8`](/sql-reference/data-types/int-uint).";
{"func(x [, y1, ..., yN])", "A lambda function `func(x [, y1, y2, ... yN]) → F(x [, y1, y2, ... yN])` which operates on elements of the source array (`x`) and condition arrays (`y`). [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
142
-
{"source", "The source array to process [`Array(T)`](/sql-reference/data-types/array)."},
143
-
{"[, cond1, ... , condN]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
142
+
{"source_arr", "The source array to process [`Array(T)`](/sql-reference/data-types/array)."},
143
+
{"[, cond1_arr, ... , condN_arr]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
144
144
};
145
145
FunctionDocumentation::ReturnedValue returned_value = "Returns an array. [`Array(T)`](/sql-reference/data-types/array).";
146
146
FunctionDocumentation::Examples examples = {
@@ -161,11 +161,11 @@ position i, the function replaces that element with the element at position i+1
161
161
from the current state of the array. The last element is always preserved
{"func(x[, y1, ..., yN])", "A lambda function which operates on elements of the source array (`x`) and condition arrays (`y`). [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
167
-
{"source", "The source array to process [`Array(T)`](/sql-reference/data-types/array)."},
168
-
{"[, cond1, ... , condN]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
167
+
{"source_arr", "The source array to process [`Array(T)`](/sql-reference/data-types/array)."},
168
+
{"[, cond1_arr, ... , condN_arr]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
169
169
};
170
170
FunctionDocumentation::ReturnedValue returned_value_reverse = "Returns an array with elements of the source array replaced by the results of the lambda. [`Array(T)`](/sql-reference/data-types/array).";
FunctionDocumentation::Description description = "Returns an array containing only the elements in the source array for which a lambda function returns something other than `0`.";
FunctionDocumentation::Description description = "Returns an array containing only the elements in the source array for which a lambda function returns true.";
{"func(x[, y1, ..., yN])", "A lambda function which operates on elements of the source array (`x`) and condition arrays (`y`). [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
56
-
{"source", "The source array to process [`Array(T)`](/sql-reference/data-types/array)."},
57
-
{"[, cond1, ... , condN]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
56
+
{"source_arr", "The source array to process [`Array(T)`](/sql-reference/data-types/array)."},
57
+
{"[, cond1_arr, ... , condN_arr]", "Optional. N condition arrays providing additional arguments to the lambda function. [`Array(T)`](/sql-reference/data-types/array)."},
58
58
};
59
59
FunctionDocumentation::ReturnedValue returned_value = "Returns a subset of the source array. [`Array(T)`](/sql-reference/data-types/array).";
0 commit comments