You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Uroš Bojanić (Jira)" <ji...@apache.org> on 2026/09/07 10:32:00 UTC

[jira] [Assigned] (SPARK-58999) Allow using only main error class when subclasses exist

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

Uroš Bojanić reassigned SPARK-58999:
------------------------------------

    Assignee: Ala Luszczak

> Allow using only main error class when subclasses exist
> -------------------------------------------------------
>
>                 Key: SPARK-58999
>                 URL: https://issues.apache.org/jira/browse/SPARK-58999
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 4.2.0
>            Reporter: Ala Luszczak
>            Assignee: Ala Luszczak
>            Priority: Major
>              Labels: pull-request-available
>
> Currently whenever an error class has at least one subclass (e.g., SPARK_ERROR_CLASS.SUBCLASS), attempting to raise an error using only the main class (SPARK_ERROR_CLASS without any subclass) hits an assertion in the error infra. If any subclass exists, a subclass has to always be used.
> This limitation is very inconvenient. A pattern where additional information, if available, is provided via subclass is common. Right now, this necessitates also having a "generic" subclass for any situation when the additional information is unavailable. It results in odd and redundant error messages. I don't see any practical reason why using only the main class would be a problem. 
> We should lift this limitation. Looking at the code, I am not even sure if it's an intentional limitation, or a minor oversight (bug).



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