You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:35:19 UTC
[jira] [Resolved] (SPARK-12373) Type coercion rule of dividing two
decimal values may choose an intermediate precision that does not have
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 ]
Hyukjin Kwon resolved SPARK-12373.
----------------------------------
Resolution: Incomplete
> Type coercion rule of dividing two decimal values may choose an intermediate precision that does not have 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
> Priority: Major
> Labels: bulk-closed
>
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org