Github user ueshin commented on a diff in the pull request:
https://github.com/apache/spark/pull/21155#discussion_r186030182
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala
---
@@ -536,6 +536,15 @@ object TypeCoercion {
case None => c
}
+ case s @ Sequence(_, _, _, timeZoneId) if !haveSameType(s.children)
=>
+ val types = s.children.map(_.dataType)
+ findWiderCommonType(types) match {
--- End diff --
Maybe we should use `ExpectsInputTypes` or `ImplicitCastInputTypes` instead
of `TypeCoercion`.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]