asiunov opened a new pull request #23493: [MINOR] Follow up for SPARK-23936, 
fixed description of "map_concat" function
URL: https://github.com/apache/spark/pull/23493
 
 
   ## What changes were proposed in this pull request?
   
   The description of "map_concat" function does not correspond to the actual 
behavior. Unit tests, an example in shell, and the PR description 
(https://jira.apache.org/jira/browse/SPARK-23936, 
https://github.com/apache/spark/pull/21073) say that duplicated keys will be 
duplicated, but the function description says the opposite.
   ```
   scala> spark.sql("SELECT map_concat(map(1, 'a', 2, 'b'), map(2, 'c', 3, 
'd'))").show(20, false)
   +--------------------------------------------+
   |map_concat(map(1, a, 2, b), map(2, c, 3, d))|
   +--------------------------------------------+
   |[1 -> a, 2 -> b, 2 -> c, 3 -> d]            |
   +--------------------------------------------+
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to