Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22421#discussion_r217795552
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala
 ---
    @@ -718,7 +718,7 @@ case class MapConcat(children: Seq[Expression]) extends 
ComplexTypeMergingExpres
       examples = """
         Examples:
           > SELECT _FUNC_(array(struct(1, 'a'), struct(2, 'b')));
    -       {1:"a",2:"b"}
    +       [1 -> "a", 2 -> "b"]
    --- End diff --
    
    The previous one is correct.
    ```
    spark-sql> SELECT map_from_entries(array(struct(1, 'a'), struct(2, 'b')));
    {1:"a",2:"b"}
    ```


---

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

Reply via email to