JoshRosen commented on code in PR #43926:
URL: https://github.com/apache/spark/pull/43926#discussion_r1402709319


##########
common/utils/src/main/resources/error/error-classes.json:
##########
@@ -2961,6 +2961,12 @@
     ],
     "sqlState" : "42601"
   },
+  "SPARK_JOB_CANCELLED" : {
+    "message" : [
+      "Job <jobId> cancelled <reason>"
+    ],
+    "sqlState" : "XXKDA"

Review Comment:
   In theory a SQL user might see this if they are submitting a query to the 
ThriftServer and then the query's underlying Spark job is canceled via the Web 
UI (unless the ThriftServer wraps the resulting query failure into some other 
exception or error code).
   
   Regardless of the likelihood of this error occurring in SQL, I think it's 
still beneficial to migrate it to the error classes framework so that it is 
easier to match on cancellation exceptions without having to do string matching.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to