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

Apache Spark reassigned SPARK-31335:
------------------------------------

    Assignee: Apache Spark

> Add try function support
> ------------------------
>
>                 Key: SPARK-31335
>                 URL: https://issues.apache.org/jira/browse/SPARK-31335
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Kent Yao
>            Assignee: Apache Spark
>            Priority: Major
>
> {code:java}
> Evaluate an expression and handle certain types of execution errors by 
> returning NULL.
> In cases where it is preferable that queries produce NULL instead of failing 
> when corrupt or invalid data is encountered, the TRY function may be useful 
> especially when ANSI mode is on and the users need null-tolerant on certain 
> columns or outputs.
> AnalysisExceptions will not handle by this, typically errors handled by TRY 
> function are: 
>       * Division by zero,
>       * Invalid casting,
>       * Numeric value out of range,
>       * e.t.c
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to