You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Milan Dankovic (Jira)" <ji...@apache.org> on 2025/12/01 16:53:00 UTC

[jira] [Commented] (SPARK-54558) Fix Internal Exception when Exception Handlers with no BEGIN/END are used

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

Milan Dankovic commented on SPARK-54558:
----------------------------------------

I am working on this.

> Fix Internal Exception when Exception Handlers with no BEGIN/END are used
> -------------------------------------------------------------------------
>
>                 Key: SPARK-54558
>                 URL: https://issues.apache.org/jira/browse/SPARK-54558
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Milan Dankovic
>            Priority: Major
>
> When Exception Handlers which don't have BEGIN-END body are triggered, internal exception `java.util.NoSuchElementException` was thrown instead of executing properly or propagating/raising the new error if it happens in handler.
>  
>  
> {code:java}
> BEGIN
>   DECLARE EXIT HANDLER FOR SQLEXCEPTION
>     SELECT 1;
>   
>   SELECT 1/0;
> END {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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