Github user mn-mikke commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21045#discussion_r188187779
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala
 ---
    @@ -90,6 +90,110 @@ case class MapKeys(child: Expression)
       override def prettyName: String = "map_keys"
     }
     
    +@ExpressionDescription(
    +  usage = """_FUNC_(a1, a2) - Returns a merged array matching N-th element 
of first
    +  array with the N-th element of second.""",
    +  examples = """
    +    Examples:
    +      > SELECT _FUNC_(array(1, 2, 3), array(2, 3, 4));
    +        [[1, 2], [2, 3], [3, 4]]
    +  """,
    +  since = "2.4.0")
    +case class Zip(left: Expression, right: Expression)
    --- End diff --
    
    Inherit your class directly from `Expression`. You can get inspired by 
`CreateArray` or `Concat` expression.


---

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

Reply via email to