spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rakesh Raushan (Jira)" <j...@apache.org>
Subject [jira] [Created] (SPARK-30292) Throw Exception when invalid string is cast to decimal in ANSI mode
Date Wed, 18 Dec 2019 06:25:00 GMT
Rakesh Raushan created SPARK-30292:
--------------------------------------

             Summary: Throw Exception when invalid string is cast to decimal in ANSI mode
                 Key: SPARK-30292
                 URL: https://issues.apache.org/jira/browse/SPARK-30292
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Rakesh Raushan


When spark.sql.ansi.enabled is set,

If we run select cast('str' as decimal), spark-sql outputs NULL. 

The ANSI SQL standard requires to throw exception when invalid strings are cast to numbers.

 



--
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


Mime
View raw message