I have tested that issue manually and looked into the codes before. It seems it does not support to find a compatible type.
https://github.com/apache/spark/blob/b914e1930fd5c5f2808f92d4958ec6fbeddf2e30/sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala#L396-L465 2016-06-29 9:00 GMT+09:00 楊閔富 <tilu...@gmail.com>: > > The issue https://issues.apache.org/jira/browse/SPARK-15516 that is about > schema merging on keys with different types need to be clarified. Does > anyone know the behaviour of schema merging when encountering different > types? >