You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2019/11/27 19:09:00 UTC
[jira] [Reopened] (SPARK-28461) Pad Decimal numbers with trailing
zeros to the scale of the column
[ https://issues.apache.org/jira/browse/SPARK-28461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun reopened SPARK-28461:
-----------------------------------
> 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