Closed
Description
Is your feature request related to a problem or challenge?
Summary
Characteristic | Description |
---|---|
Function name: | array_repeat |
Aliases: | list_repeat |
Original function?: | No |
Function Description: | Azure DataBricks: Returns an array containing element count times. SQL Spark: Creates an array containing the first argument repeated the number of times given by the second argument. |
Sources: | Concept Azure Spark |
Examples:
❯ 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]] |
+------------------------------------+
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response