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

   ### Is your feature request related to a problem or challenge?
   
   ## Summary
   
   | Characteristic        | Description                                        
                                                                                
                                                                                
                                                                                
                                     |
   | --------------------- | 
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 |
   | Function name:        | `array_has`                                        
                                                                                
                                                                                
                                                                                
                                     |
   | Aliases:              | `list_has`, `array_contains`, `list_contains`      
                                                                                
                                                                                
                                                                                
                                     |
   | Original function?:   | No                                                 
                                                                                
                                                                                
                                                                                
                                     |
   | Function Description: | <b>Azure DataBricks:</b> Returns true if array 
contains value. </br> <b>Clickhouse:</b> Checks whether the ‘arr’ array has the 
‘elem’ element. Returns 0 if the element is not in the array, or 1 if it is. 
</br> <b>DuckDB:</b> Returns true if the list contains the element. <b> </b>    
                                            |
   | Sources:              | 
[Concept](https://github.com/apache/arrow-datafusion/discussions/6855) 
[Azure](https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/functions/array_contains)
 
[ClickHouse](https://clickhouse.com/docs/en/sql-reference/functions/array-functions#hasarr-elem)
 [DuckDB](https://duckdb.org/docs/sql/functions/nested) |
   
   ## Examples:
   
   ```
   select array_has([1, 2, 3, 4], 3);
   ----
   true
   ```
   
   ```
   select array_has([1, 2, 3, 4], 5);
   ----
   false
   ```
   
   
   ### 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