Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/21074#discussion_r181620108 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala --- @@ -178,7 +178,13 @@ object TypeCoercion { private def findWiderCommonType(types: Seq[DataType]): Option[DataType] = { types.foldLeft[Option[DataType]](Some(NullType))((r, c) => r match { case Some(d) => findWiderTypeForTwo(d, c) - case None => None + // Currently we find the wider common type by comparing the two types from left to right, --- End diff -- This is a behavior change. We need to make it configurable. Add a conf and update the migration guide.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org