[ https://issues.apache.org/jira/browse/SPARK-25208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16590074#comment-16590074 ]
Apache Spark commented on SPARK-25208: -------------------------------------- User 'ueshin' has created a pull request for this issue: https://github.com/apache/spark/pull/22200 > 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 > Priority: Major > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org