Github user rxin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/999#discussion_r13518251
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercion.scala
 ---
    @@ -108,6 +108,9 @@ trait HiveTypeCoercion {
        *
        * Additionally, all types when UNION-ed with strings will be promoted 
to strings.
        * Other string conversions are handled by PromoteStrings.
    +   *
    +   * A widening conversion of a value with IntegerType and LongType to 
FloatType,
    --- End diff --
    
    Maybe more clear if you document it this way:
    ```
    Widening types might result in loss of precision the following cases:
     - IntegerType to FloatType
     - LongType to FloatType
     - LongType to DoubleType
    ```


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to