-
- Downloads
[SPARK-18950][SQL] Report conflicting fields when merging two StructTypes
## What changes were proposed in this pull request? Currently, StructType.merge() only reports data types of conflicting fields when merging two incompatible schemas. It would be nice to also report the field names for easier debugging. ## How was this patch tested? Unit test in DataTypeSuite. Print exception message when conflict is triggered. Author: bravo-zhang <mzhang1230@gmail.com> Closes #16365 from bravo-zhang/spark-18950.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala 11 additions, 4 deletions...rc/main/scala/org/apache/spark/sql/types/StructType.scala
- sql/catalyst/src/test/scala/org/apache/spark/sql/types/DataTypeSuite.scala 4 additions, 2 deletions...test/scala/org/apache/spark/sql/types/DataTypeSuite.scala
Loading
Please register or sign in to comment