You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/09/11 15:13:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17194316#comment-17194316 ] 

Apache Spark commented on SPARK-32706:
--------------------------------------

User 'wangyum' has created a pull request for this issue:
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
>            Priority: Minor
>         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