Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21581#discussion_r196016648
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
    @@ -3077,12 +3077,16 @@ object functions {
       
//////////////////////////////////////////////////////////////////////////////////////////////
     
       /**
    -   * Returns null if the array is null, true if the array contains 
`value`, and false otherwise.
    +   * Returns null if the array is null, true if the array contains `value` 
or the content of
    +   * `value` if it is of type Column, and false otherwise.
        * @group collection_funcs
        * @since 1.5.0
        */
       def array_contains(column: Column, value: Any): Column = withExpr {
    -    ArrayContains(column.expr, Literal(value))
    --- End diff --
    
    Other similar expressions are `ArrayPosition`, `ElementAt`, `ArrayRemove`.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to