You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by we...@apache.org on 2026/01/23 12:51:11 UTC

(spark) branch master updated: [SPARK-54887][CONNECT] Remove deprecated annotation

This is an automated email from the ASF dual-hosted git repository.

wenchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 3f54007bfe4e [SPARK-54887][CONNECT] Remove deprecated annotation
3f54007bfe4e is described below

commit 3f54007bfe4ee4701a92e45de1e615e20e6cc379
Author: Garland Zhang <ga...@databricks.com>
AuthorDate: Fri Jan 23 20:50:54 2026 +0800

    [SPARK-54887][CONNECT] Remove deprecated annotation
    
    ### What changes were proposed in this pull request?
    Follow up from https://github.com/apache/spark/pull/52696#discussion_r2704626814
    
    ### Why are the changes needed?
    
    ### Does this PR introduce _any_ user-facing change?
    
    ### How was this patch tested?
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Closes #53916 from garlandz-db/undeprecate_spark_exception.
    
    Authored-by: Garland Zhang <ga...@databricks.com>
    Signed-off-by: Wenchen Fan <we...@databricks.com>
---
 common/utils/src/main/java/org/apache/spark/SparkThrowable.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/common/utils/src/main/java/org/apache/spark/SparkThrowable.java b/common/utils/src/main/java/org/apache/spark/SparkThrowable.java
index 463197ef46fb..7fbd481c4b60 100644
--- a/common/utils/src/main/java/org/apache/spark/SparkThrowable.java
+++ b/common/utils/src/main/java/org/apache/spark/SparkThrowable.java
@@ -52,10 +52,11 @@ public interface SparkThrowable {
   // Portable error identifier across SQL engines
   // If null, error class or SQLSTATE is not set
   /**
-   * @deprecated Override this method to provide a custom SQL state.
-   *             The default implementation uses the error class reader.
+   * ================================================
+   * Server side exceptions should override this method and use a provided SQL state property
+   * instead.
+   * ================================================
    */
-  @Deprecated
   default String getSqlState() {
     return SparkThrowableHelper.getSqlState(this.getCondition());
   }


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