heyihong commented on code in PR #54056:
URL: https://github.com/apache/spark/pull/54056#discussion_r2804748911
##########
sql/connect/common/src/main/scala/org/apache/spark/sql/connect/common/InvalidPlanInput.scala:
##########
@@ -46,11 +46,13 @@ object InvalidPlanInput {
InvalidPlanInput(
errorCondition = "INTERNAL_ERROR",
messageParameters = Map("message" -> message),
- causeOpt = None)
+ causeOpt = None,
+ sqlState = Some("56K00"))
Review Comment:
On second thought, it may not be a good idea to include this custom mapping
in the code. It breaks the assumption that each error condition corresponds to
a single SQL state. You might also need to change the error condition to a new
one and store this mapping in error-conditions.json.
--
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]