SuccessChanges

Summary

  1. [SPARK-26198][SQL] Fix Metadata serialize null values throw NPE (commit: 8236f649762fd953626e7d14eb5b5dd544ab38cc) (details)
Commit 8236f649762fd953626e7d14eb5b5dd544ab38cc by sean.owen
[SPARK-26198][SQL] Fix Metadata serialize null values throw NPE
How to reproduce this issue:
```scala scala> val meta = new
org.apache.spark.sql.types.MetadataBuilder().putNull("key").build().json
java.lang.NullPointerException
at
org.apache.spark.sql.types.Metadata$.org$apache$spark$sql$types$Metadata$$toJsonValue(Metadata.scala:196)
at
org.apache.spark.sql.types.Metadata$$anonfun$1.apply(Metadata.scala:180)
```
This pr fix `NullPointerException` when `Metadata` serialize `null`
values.
unit tests
Closes #23164 from wangyum/SPARK-26198.
Authored-by: Yuming Wang <yumwang@ebay.com> Signed-off-by: Sean Owen
<sean.owen@databricks.com>
(cherry picked from commit 676bbb2446af1f281b8f76a5428b7ba75b7588b3)
Signed-off-by: Sean Owen <sean.owen@databricks.com>
(commit: 8236f649762fd953626e7d14eb5b5dd544ab38cc)
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/types/Metadata.scala (diff)