Github user mgaido91 commented on a diff in the pull request:
https://github.com/apache/spark/pull/19635#discussion_r148951532
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala
---
@@ -422,7 +422,7 @@ object TypeCoercion {
val commonTypes = lhs.zip(rhs).flatMap { case (l, r) =>
findCommonTypeForBinaryComparison(l.dataType, r.dataType)
- .orElse(findTightestCommonType(l.dataType, r.dataType))
+ .orElse(findWiderTypeForTwo(l.dataType, r.dataType))
--- End diff --
To be coherent with what is done when there are literals instead of a
subquery.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]