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

    https://github.com/apache/spark/pull/21722#discussion_r201219153
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/types/Metadata.scala ---
    @@ -215,6 +215,8 @@ object Metadata {
             x.##
           case x: Metadata =>
             hash(x.map)
    +      case null =>
    --- End diff --
    
    Yes, the `putNull` method exists, but is actually not useable because of 
this bug. Having `null` in Metadata would be really helpful for me, as I'd like 
to store default values for fields in the Metadata. And NULL is a very common 
case as a default value.


---

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

Reply via email to