Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6551#discussion_r31416746
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercion.scala
 ---
    @@ -47,9 +47,14 @@ object HiveTypeCoercion {
         case (t1, NullType) => Some(t1)
     
         // Promote numeric types to the highest of the two and all numeric 
types to unlimited decimal
    +    // Promote numeric types to String if one is string type and the other 
is numeric type
         case (t1, t2) if Seq(t1, t2).forall(numericPrecedence.contains) =>
    --- End diff --
    
     `numericPrecedence` doesn't contain `StringType`, you need to write a 
separate case like `case (t1 @ StringType(), t2 @ NumericType())`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to