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

    https://github.com/apache/spark/pull/15294#discussion_r81103845
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala
 ---
    @@ -191,11 +193,15 @@ case class SortArray(base: Expression, 
ascendingOrder: Expression)
     }
     
     /**
    - * Checks if the array (left) has the element (right)
    + * Checks if the array (left) has the element (right) and pattern match in
    + * case left is Array of type string
      */
    +
     @ExpressionDescription(
    -  usage = "_FUNC_(array, value) - Returns TRUE if the array contains the 
value.",
    -  extended = " > SELECT _FUNC_(array(1, 2, 3), 2);\n true")
    +  usage = """_FUNC_(array, value) - Returns TRUE if the array contains the 
value or
    --- End diff --
    
    So, in that case we can add one more expression , something like 
ArrayContainsWithPatternMatch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to