[ https://issues.apache.org/jira/browse/SPARK-28461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-28461. ---------------------------------- Fix Version/s: 3.0.0 Resolution: Fixed Issue resolved by pull request 25214 [https://github.com/apache/spark/pull/25214] > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org