You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2015/12/16 20:51:46 UTC

[jira] [Updated] (SPARK-12373) Type coercion rule of dividing two decimal values may choose an intermediate precision that does not enough number of digits at the left of decimal point

     [ https://issues.apache.org/jira/browse/SPARK-12373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yin Huai updated SPARK-12373:
-----------------------------
    Summary: Type coercion rule of dividing two decimal values may choose an intermediate precision that does not enough number of digits at the left of decimal point   (was: Type coercion rule for dividing two decimal values may choose an intermediate precision that does not enough number of digits at the left of decimal point )

> Type coercion rule of dividing two decimal values may choose an intermediate precision that does not enough number of digits at the left of decimal point 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-12373
>                 URL: https://issues.apache.org/jira/browse/SPARK-12373
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Yin Huai
>
> Looks like the {{widerDecimalType}} at https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercion.scala#L432 can produce something like {{(38, 38)}} when we have have two operand types {{Decimal(38, 0)}} and {{Decimal(38, 38)}}. We should take a look at if there is more reasonable way to handle precision/scale.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org