izveigor opened a new issue, #7197:
URL: https://github.com/apache/arrow-datafusion/issues/7197

   ### 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: | <b>Azure DataBricks:</b> Returns an array 
containing element count times. </br> <b>SQL Spark:</b> Creates an array 
containing the first argument repeated the number of times given by the second 
argument.                                         |
   | Sources:              | 
[Concept](https://github.com/apache/arrow-datafusion/discussions/6855) 
[Azure](https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/functions/array_repeat)
 [Spark](https://sparkbyexamples.com/spark/spark-sql-array-functions/) |
   
   ## 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_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to