spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gengliang Wang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-28512) New optional mode: throw runtime exceptions on casting failures
Date Thu, 01 Aug 2019 07:37:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-28512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gengliang Wang updated SPARK-28512:
-----------------------------------
    Issue Type: Sub-task  (was: Improvement)
        Parent: SPARK-28589

> New optional mode: throw runtime exceptions on casting failures
> ---------------------------------------------------------------
>
>                 Key: SPARK-28512
>                 URL: https://issues.apache.org/jira/browse/SPARK-28512
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Gengliang Wang
>            Priority: Major
>
> In popular DBMS like MySQL/PostgreSQL/Oracle, runtime exceptions are thrown on casting,
e.g. cast('abc' as int) 
> While in Spark, the result is converted as null silently. It is by design since we don't
want a long-running job aborted by some casting failure. But there are scenarios that users
want to make sure all the data conversion are correct, like the way they use MySQL/PostgreSQL/Oracle.
> If the changes touch too much code, we can limit the new optional mode to table insertion
first. By default the new behavior is disabled.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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


Mime
View raw message