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
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
100
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 = {{"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).";
{"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).
24
+
25
+
:::note
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.
28
+
- Can be `NULL`. The function adds a `NULL` element to an array, and the type of array elements converts to `Nullable`.
29
+
30
+
For more information about the types of data in ClickHouse, see [Data types](/sql-reference/data-types).
31
+
:::
32
+
)"},
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).";
{"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).
26
+
27
+
:::note
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.
30
+
- Can be `NULL`. The function adds a `NULL` element to an array, and the type of array elements converts to `Nullable`.
31
+
32
+
For more information about the types of data in ClickHouse, see [Data types](/sql-reference/data-types).
33
+
:::
34
+
)"},
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).";
0 commit comments