[jira] [Updated] (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

2019-05-20 Thread Hyukjin Kwon (JIRA)


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

Hyukjin Kwon updated SPARK-12373:
-
Labels: bulk-closed  (was: )

> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (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

2016-07-17 Thread Sean Owen (JIRA)

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

Sean Owen updated SPARK-12373:
--
Target Version/s:   (was: 2.0.0)

> 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
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (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

2016-01-12 Thread Yin Huai (JIRA)

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

Yin Huai updated SPARK-12373:
-
Target Version/s: 2.0.0  (was: 1.6.1, 2.0.0)

> 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
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (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

2015-12-16 Thread Yin Huai (JIRA)

 [ 
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 have enough number of digits at the left 
of decimal point   (was: 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 )

> 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
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org