Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Applies to:
Databricks SQL
Databricks Runtime
Returns an array containing element count times.
Syntax
array_repeat(element, count)
Arguments
element: An expression of any type.count: An INTEGER greater or equal to 0.
Returns
An array of the elements of the element type.
Azure Databricks raises COLLECTION_SIZE_LIMIT_EXCEEDED if count exceeds the array size limit.
Common error conditions
Examples
> SELECT array_repeat('123', 2);
[123, 123]