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

    https://github.com/apache/spark/pull/22544#discussion_r220766294
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala
 ---
    @@ -974,6 +974,25 @@ object TypeCoercion {
                 if !Cast.forceNullable(fromType, toType) =>
               implicitCast(fromType, toType).map(ArrayType(_, false)).orNull
     
    +        // Implicit cast between Map types.
    +        // Follows the same semantics of implicit casting between two 
array types.
    +        // Refer to documentation above. Make sure that both key and values
    +        // can not by null after the implicit cast operation by calling 
forceNullable
    --- End diff --
    
    @viirya Thank you. 


---

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

Reply via email to