You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2020/09/16 14:10:00 UTC
[jira] [Resolved] (SPARK-32706) Poor performance when casting
invalid decimal string to decimal type
[ https://issues.apache.org/jira/browse/SPARK-32706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-32706.
---------------------------------
Fix Version/s: 3.1.0
Resolution: Fixed
Issue resolved by pull request 29731
[https://github.com/apache/spark/pull/29731]
> Poor performance when casting invalid decimal string to decimal type
> --------------------------------------------------------------------
>
> Key: SPARK-32706
> URL: https://issues.apache.org/jira/browse/SPARK-32706
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.1.0
> Reporter: Yuming Wang
> Assignee: Yuming Wang
> Priority: Minor
> Fix For: 3.1.0
>
> Attachments: part-00000.parquet
>
>
> How to reproduce this issue:
> {code:java}
> spark.read.parquet("/path/to/part-00000.parquet").selectExpr("cast(bd as decimal(18, 0)) as x").write.mode("overwrite").save("/tmp/spark/decimal")
> {code}
--
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