[ https://issues.apache.org/jira/browse/SPARK-46112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Haejoon Lee updated SPARK-46112: -------------------------------- Summary: Implement lint check for PySpark custom errors (was: Enforce usage of PySpark-specific Exceptions over built-in Python Exceptions) > Implement lint check for PySpark custom errors > ---------------------------------------------- > > Key: SPARK-46112 > URL: https://issues.apache.org/jira/browse/SPARK-46112 > Project: Spark > Issue Type: Sub-task > Components: Build, PySpark > Affects Versions: 4.0.0 > Reporter: Haejoon Lee > Priority: Major > Labels: pull-request-available > > Currently, in the PySpark codebase, there is an inconsistency in the usage of > exceptions. In some instances, PySpark-specific exceptions are utilized, > while in others, generic Python built-in exceptions are used. This > inconsistency can lead to confusion and difficulty in maintaining and > debugging the code. See [https://github.com/apache/spark/pull/44024] related > work to fix such a case. > The goal of this ticket is to establish a standardized practice for error > handling in PySpark by mandating the use of PySpark-specific exceptions where > applicable. This will ensure that all exceptions thrown within PySpark adhere > to a consistent format and standard, making them more informative and easier > to handle. > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org