You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "MaxGekk (via GitHub)" <gi...@apache.org> on 2024/10/09 17:44:14 UTC
Re: [PR] [SPARK-49748][CORE] Add `getCondition` and deprecate `getErrorClass` in `SparkThrowable` [spark]
MaxGekk commented on code in PR #48196:
URL: https://github.com/apache/spark/pull/48196#discussion_r1793920552
##########
common/utils/src/main/java/org/apache/spark/SparkThrowable.java:
##########
@@ -35,19 +35,29 @@
*/
@Evolving
public interface SparkThrowable {
- // Succinct, human-readable, unique, and consistent representation of the error category
- // If null, error class is not set
- String getErrorClass();
+ /**
+ * Succinct, human-readable, unique, and consistent representation of the error condition.
+ * If null, error condition is not set.
+ */
+ String getCondition();
Review Comment:
BTW, the SQL standard just uses the word `condition`:
<img width="920" alt="Screenshot 2024-10-09 at 19 38 51" src="https://github.com/user-attachments/assets/bd17ce98-3f99-4419-a3aa-927cf162d696">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org