spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hyukjin Kwon (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-28461) Pad Decimal numbers with trailing zeros to the scale of the column
Date Mon, 02 Dec 2019 00:04:00 GMT

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

Hyukjin Kwon resolved SPARK-28461.
----------------------------------
    Resolution: Fixed

Issue resolved by pull request 26697
[https://github.com/apache/spark/pull/26697]

> Pad Decimal numbers with trailing zeros to the scale of the column
> ------------------------------------------------------------------
>
>                 Key: SPARK-28461
>                 URL: https://issues.apache.org/jira/browse/SPARK-28461
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Assignee: Yuming Wang
>            Priority: Major
>             Fix For: 3.0.0
>
>
> PostgreSQL:
> {code:sql}
> postgres=# select cast(1 as decimal(38, 18));
>        numeric
> ----------------------
>  1.000000000000000000
> (1 row)
> {code}
> Spark SQL:
> {code:sql}
> spark-sql> select cast(1 as decimal(38, 18));
> 1
> spark-sql>
> {code}
> Hive fix this issue by HIVE-12063.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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


Mime
View raw message