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", "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.";
100
96
FunctionDocumentation::Examples example = {{"Usage example", "SELECT arrayCount(x -> (x % 2), groupArray(number) FROM numbers(10)", "5"}};
FunctionDocumentation::Arguments arguments = {{"x", "The array for which to remove the last element from. [`Array`](/sql-reference/data-types/array)."}};
21
-
FunctionDocumentation::ReturnedValue returned_value = "Returns an array identical to `x` but without the last element of `x`. [`Array`](/sql-reference/data-types/array).";
FunctionDocumentation::Arguments arguments = {{"arr", "The array for which to remove the last element from. [`Array(T)`](/sql-reference/data-types/array)."}};
21
+
FunctionDocumentation::ReturnedValue returned_value = "Returns an array identical to `arr` but without the last element of `arr`. [`Array(T)`](/sql-reference/data-types/array).";
FunctionDocumentation::Arguments arguments = {{"x", "The array for which to remove the first element from. [`Array`](/sql-reference/data-types/array)."}};
21
-
FunctionDocumentation::ReturnedValue returned_value = "Returns an array identical to `x` but without the first element of `x`. [`Array`](/sql-reference/data-types/array).";
FunctionDocumentation::Arguments arguments = {{"arr", "The array for which to remove the first element from. [`Array(T)`](/sql-reference/data-types/array)."}};
21
+
FunctionDocumentation::ReturnedValue returned_value = "Returns an array identical to `arr` but without the first element of `arr`. [`Array(T)`](/sql-reference/data-types/array).";
{"x", "The array for which to add value `y` to the end of. [`Array`](/sql-reference/data-types/array)."},
22
-
{"y", R"(
23
-
- Single value to add to the end of the array. [`Array`](/sql-reference/data-types/array).
21
+
{"arr", "The array for which to add value `x` to the end of. [`Array(T)`](/sql-reference/data-types/array)."},
22
+
{"x", R"(
23
+
- Single value to add to the end of the array. [`Array(T)`](/sql-reference/data-types/array).
24
24
25
25
:::note
26
26
- Only numbers can be added to an array with numbers, and only strings can be added to an array of strings.
27
-
- When adding numbers, ClickHouse automatically sets the type of `y` for the data type of the array.
27
+
- When adding numbers, ClickHouse automatically sets the type of `x` for the data type of the array.
28
28
- Can be `NULL`. The function adds a `NULL` element to an array, and the type of array elements converts to `Nullable`.
29
29
30
30
For more information about the types of data in ClickHouse, see [Data types](/sql-reference/data-types).
31
31
:::
32
32
)"},
33
33
};
34
-
FunctionDocumentation::ReturnedValue returned_value = "Returns an array identical to `x` but with an additional value `y` at the end of the array. [`Array`](/sql-reference/data-types/array).";
34
+
FunctionDocumentation::ReturnedValue returned_value = "Returns an array identical to `arr` but with an additional value `x` at the end of the array. [`Array(T)`](/sql-reference/data-types/array).";
{"x", "The array for which to add value `y` to the end of. [`Array`](/sql-reference/data-types/array)."},
24
-
{"y", R"(
25
-
- Single value to add to the start of the array. [`Array`](/sql-reference/data-types/array).
23
+
{"arr", "The array for which to add value `x` to the end of. [`Array(T)`](/sql-reference/data-types/array)."},
24
+
{"x", R"(
25
+
- Single value to add to the start of the array. [`Array(T)`](/sql-reference/data-types/array).
26
26
27
27
:::note
28
28
- Only numbers can be added to an array with numbers, and only strings can be added to an array of strings.
29
-
- When adding numbers, ClickHouse automatically sets the type of `y` for the data type of the array.
29
+
- When adding numbers, ClickHouse automatically sets the type of `x` for the data type of the array.
30
30
- Can be `NULL`. The function adds a `NULL` element to an array, and the type of array elements converts to `Nullable`.
31
31
32
32
For more information about the types of data in ClickHouse, see [Data types](/sql-reference/data-types).
33
33
:::
34
34
)"},
35
35
};
36
-
FunctionDocumentation::ReturnedValue returned_value = "Returns an array identical to `x` but with an additional value `y` at the beginning of the array. [`Array`](/sql-reference/data-types/array).";
36
+
FunctionDocumentation::ReturnedValue returned_value = "Returns an array identical to `arr` but with an additional value `x` at the beginning of the array. [`Array(T)`](/sql-reference/data-types/array).";
{"arr", "Array to search. [`Array`](/sql-reference/data-types/array)."},
19
+
{"arr", "Array to search. [`Array(T)`](/sql-reference/data-types/array)."},
20
20
{"x", "Value in the array to count. Any type."}
21
21
};
22
-
FunctionDocumentation::ReturnedValue returned_value = "Returns the number of elements in the array equal to `x`. UInt64.";
22
+
FunctionDocumentation::ReturnedValue returned_value = "Returns the number of elements in the array equal to `x`. [UInt64](/sql-reference/data-types/int-uint).";
0 commit comments