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
Copy file name to clipboardExpand all lines: src/Functions/array/arrayCompact.cpp
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -162,11 +162,11 @@ using FunctionArrayCompact = FunctionArrayMapped<ArrayCompactImpl, NameArrayComp
162
162
REGISTER_FUNCTION(ArrayCompact)
163
163
{
164
164
FunctionDocumentation::Description description = "Removes consecutive duplicate elements from an array. The order of result values is determined by the order in the source array.";
{"x", "A multidimensional array. [`Array`](/sql-reference/data-types/array)(`Array`)"}
137
+
{"arr", "A multidimensional array. [`Array(T)`](/sql-reference/data-types/array)(`Array`)"}
138
138
};
139
-
FunctionDocumentation::ReturnedValue returned_value = "Returns a flattened array from the multidimensional array. [`Array`](/sql-reference/data-types/array).";
139
+
FunctionDocumentation::ReturnedValue returned_value = "Returns a flattened array from the multidimensional array. [`Array(T)`](/sql-reference/data-types/array).";
Copy file name to clipboardExpand all lines: src/Functions/array/arrayFold.cpp
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -290,13 +290,13 @@ class FunctionArrayFold : public IFunction
290
290
REGISTER_FUNCTION(ArrayFold)
291
291
{
292
292
FunctionDocumentation::Description description = "Applies a lambda function to one or more equally-sized arrays and collects the result in an accumulator.";
{"λ(acc, x1 [, x2, x3, ... xN])", "A lambda function `λ(acc, x1 [, x2, x3, ... xN]) → F(acc, x1 [, x2, x3, ... xN])` where `F` is an operation applied to `acc` and the values of one, or multiple arrays, with the result of `acc` re-used. [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)"},
296
-
{"x1 [, x2, x3, ... xN]", "N arrays over which to operate. [Array](/sql-reference/data-types/array)"},
295
+
{"λ(x, x1 [, x2, x3, ... xN])", "A lambda function `λ(acc, x1 [, x2, x3, ... xN]) → F(acc, x1 [, x2, x3, ... xN])` where `F` is an operation applied to `acc` and array values from `x` with the result of `acc` re-used. [Lambda function](/sql-reference/functions/overview#arrow-operator-and-lambda)."},
296
+
{"arr1 [, arr2, arr3, ... arrN]", "N arrays over which to operate. [`Array(T)`](/sql-reference/data-types/array)"},
297
297
{"acc", "Accumulator value with the same type as the return type of the Lambda function."}
298
298
};
299
-
FunctionDocumentation::ReturnedValue returned_value = "Returns the result of the lambda sequentially applied to each";
299
+
FunctionDocumentation::ReturnedValue returned_value = "Returns the final `acc` value.";
{"agg_f", "The name of the aggregate function to use. [String](/sql-reference/data-types/string)"},
397
-
{"ranges", "The range over which to aggregate. An array of tuples, `(i, r)` containing the index `i` from which to begin from and the range `r` over which to aggregate [Array](/sql-reference/data-types/array)([Tuple](/sql-reference/data-types/tuple))"},
398
-
{"x1, x2, ..., xN", "N arrays as arguments to the aggregate function. [Array](/sql-reference/data-types/array)."},
397
+
{"ranges", "The range over which to aggregate. An array of tuples, `(i, r)` containing the index `i` from which to begin from and the range `r` over which to aggregate [`Array(T)`](/sql-reference/data-types/array)([`Tuple(T1, T2, ...)`](/sql-reference/data-types/tuple))"},
398
+
{"arr1 [, arr2, ... ,arrN)]", "N arrays as arguments to the aggregate function. [`Array(T)`](/sql-reference/data-types/array)."},
399
399
};
400
-
FunctionDocumentation::ReturnedValue returned_value = "Returns an array containing results of the aggregate function over the specified ranges. [Array](/sql-reference/data-types/array).";
400
+
FunctionDocumentation::ReturnedValue returned_value = "Returns an array containing results of the aggregate function over the specified ranges. [`Array(T)`](/sql-reference/data-types/array).";
{"x", "An array to reverse. [Array](/sql-reference/data-types/array)"}
259
+
{"arr", "The array to reverse. [`Array(T)`](/sql-reference/data-types/array)."}
260
260
};
261
-
FunctionDocumentation::ReturnedValue returned_value = "Returns an array of the same size as the original array containing the elements in reverse order. [Array](/sql-reference/data-types/array)";
261
+
FunctionDocumentation::ReturnedValue returned_value = "Returns an array of the same size as the original array containing the elements in reverse order. [`Array(T)`](/sql-reference/data-types/array).";
Copy file name to clipboardExpand all lines: src/Functions/array/arrayZip.cpp
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -172,20 +172,20 @@ class FunctionArrayZip : public IFunction
172
172
REGISTER_FUNCTION(ArrayZip)
173
173
{
174
174
FunctionDocumentation::Description description = "Combines multiple arrays into a single array. The resulting array contains the corresponding elements of the source arrays grouped into tuples in the listed order of arguments.";
FunctionDocumentation::Arguments argument = {{"x1, x2, ..., xN", "N arrays to combine into a single array. [`Array`](/sql-reference/data-types/array)"}};
177
-
FunctionDocumentation::ReturnedValue returned_value = "Returns an array with elements from the source arrays grouped in tuples. Data types in the tuple are the same as types of the input arrays and in the same order as arrays are passed. [`Array`](/sql-reference/data-types/array)([`Tuple`](/sql-reference/data-types/tuple)).";
FunctionDocumentation::Arguments argument = {{"arr1, arr2, ..., arrN", "N arrays to combine into a single array. [`Array(T)`](/sql-reference/data-types/array)"}};
177
+
FunctionDocumentation::ReturnedValue returned_value = "Returns an array with elements from the source arrays grouped in tuples. Data types in the tuple are the same as types of the input arrays and in the same order as arrays are passed. [`Array(T)`](/sql-reference/data-types/array)([`Tuple`](/sql-reference/data-types/tuple)).";
FunctionDocumentation::Description description_unaligned = "Combines multiple arrays into a single array, allowing for unaligned arrays (arrays of different lengths). The resulting array contains the corresponding elements of the source arrays grouped into tuples in the listed order of arguments.";
FunctionDocumentation::Arguments argument_unaligned = {{"x1, x2, ..., xN", "N arrays to combine into a single array. [`Array`](/sql-reference/data-types/array)."}};
188
-
FunctionDocumentation::ReturnedValue returned_value_unaligned = "Returns an array with elements from the source arrays grouped in tuples. Data types in the tuple are the same as types of the input arrays and in the same order as arrays are passed. [`Array`](/sql-reference/data-types/array)([`Tuple`](/sql-reference/data-types/tuple)).";
185
+
FunctionDocumentation::Description description_unaligned = "Combines multiple arrays into a single array, allowing for unaligned arrays (arrays of differing lengths). The resulting array contains the corresponding elements of the source arrays grouped into tuples in the listed order of arguments.";
FunctionDocumentation::Arguments argument_unaligned = {{"arr1, arr2, ..., arrN", "N arrays to combine into a single array. [`Array(T)`](/sql-reference/data-types/array)."}};
188
+
FunctionDocumentation::ReturnedValue returned_value_unaligned = "Returns an array with elements from the source arrays grouped in tuples. Data types in the tuple are the same as types of the input arrays and in the same order as arrays are passed. [`Array(T)`](/sql-reference/data-types/array)([`Tuple(T1, T2, ...)`](/sql-reference/data-types/tuple)).";
0 commit comments