❯ select array_repeat(1, 3);
+---------------------------------+
| array_repeat(Int64(1),Int64(3)) |
+---------------------------------+
| [1, 1, 1] |
+---------------------------------+
❯ select array_repeat([1, 2], 2);
+------------------------------------+
| array_repeat(List([1,2]),Int64(2)) |
+------------------------------------+
| [[1, 2], [1, 2]] |
+------------------------------------+
Is your feature request related to a problem or challenge?
Summary
array_repeatlist_repeatSQL Spark: Creates an array containing the first argument repeated the number of times given by the second argument.
Examples:
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response