array_repeat
function
Applies to: Databricks SQL Databricks Runtime
Returns an array containing element
count
times.
Syntax
array_repeat(element, count)
Returns
An array of the elements of the element type.
Examples
> SELECT array_repeat('123', 2);
[123, 123]