spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [spark] wangyum commented on a change in pull request #25214: [SPARK-28461][SQL] Pad Decimal numbers with trailing zeros to the scale of the column
Date Tue, 26 Nov 2019 15:01:15 GMT
wangyum commented on a change in pull request #25214: [SPARK-28461][SQL] Pad Decimal numbers
with trailing zeros to the scale of the column
URL: https://github.com/apache/spark/pull/25214#discussion_r350793022
 
 

 ##########
 File path: docs/sql-migration-guide.md
 ##########
 @@ -226,6 +226,32 @@ license: |
 
   - Since Spark 3.0, when casting string value to date, timestamp and interval values, the
leading and trailing white spaces(<= ACSII 32) will be trimmed before casing, e.g. `cast('2019-10-10\t
as date)` results the date value `2019-10-10`. In Spark version 2.4 and earlier, only the
trailing space will be removed, thus, the result is `null`.
 
+  - Since Spark 3.0, we pad decimal numbers with trailing zeros to the scale of the column
for Hive result, for example:
 
 Review comment:
   https://github.com/apache/spark/blob/051e691029c456fc2db5f229485d3fb8f5d0e84c/sql/core/src/main/scala/org/apache/spark/sql/execution/HiveResult.scala#L33-L37

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


Mime
View raw message