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 2018/09/06 11:46:00 UTC

[jira] [Commented] (SPARK-25208) Loosen Cast.forceNullable for DecimalType.

    [ https://issues.apache.org/jira/browse/SPARK-25208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16605680#comment-16605680 ] 

Apache Spark commented on SPARK-25208:
--------------------------------------

User 'ueshin' has created a pull request for this issue:
https://github.com/apache/spark/pull/22352

> Loosen Cast.forceNullable for DecimalType.
> ------------------------------------------
>
>                 Key: SPARK-25208
>                 URL: https://issues.apache.org/jira/browse/SPARK-25208
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Takuya Ueshin
>            Assignee: Takuya Ueshin
>            Priority: Major
>             Fix For: 2.4.0
>
>
> Casting to {{DecimalType}} is not always needed to force nullable.
> If the decimal type to cast is wider than original type, or only truncating or precision loss, the casted value won't be {{null}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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