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

Wenchen Fan resolved SPARK-52489.
---------------------------------
    Fix Version/s: 4.1.0
                   4.0.1
       Resolution: Fixed

Issue resolved by pull request 51168
[https://github.com/apache/spark/pull/51168]

> [M2] Forbid duplicate SQLEXCEPTION and NOT FOUND handlers inside SQL Script
> ---------------------------------------------------------------------------
>
>                 Key: SPARK-52489
>                 URL: https://issues.apache.org/jira/browse/SPARK-52489
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Milan Dankovic
>            Assignee: Milan Dankovic
>            Priority: Major
>             Fix For: 4.1.0, 4.0.1
>
>
> This code should not work, but it works. Current behavior is that the last 
> handler being recognized as the correct one. We should throw an error when 
> duplicate handlers are defined in the same scope.
> {code:java}
> BEGIN
>   DECLARE EXIT HANDLER FOR NOT FOUND
>   BEGIN
>     SELECT 1;
>   END;
>   DECLARE EXIT HANDLER FOR NOT FOUND
>   BEGIN
>     SELECT 2;
>   END;
> END{code}



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

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

Reply via email to