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

Sean Owen resolved SPARK-7702.
------------------------------
    Resolution: Invalid

I think you're right the first time that this is really a question to ask on 
user@ first. JIRAs are for fairly clear bug reports/fixes or well-defined 
improvements.

> Is it necessary to limit the precision of a Decimal type?
> ---------------------------------------------------------
>
>                 Key: SPARK-7702
>                 URL: https://issues.apache.org/jira/browse/SPARK-7702
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.3.1
>            Reporter: Zhongshuai Pei
>
> SQL
> {noformat}
> select cast(12.8 as decimal(40,20)) as tmp;
> {noformat}
> use spark-sql
> {noformat}
> tmp
> 12.8
> {noformat}
> use beeline
> {noformat}
> Error: java.lang.IllegalArgumentException: Decimal precision out of allowed 
> range [1,38] (state=,code=0)
> {noformat}
> Because the precision of a Decimal type is limited to 38 digits in Hive, so 
> is it necessary to limit the precision of a Decimal type for spark?



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

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

Reply via email to