cboumalh commented on code in PR #52883:
URL: https://github.com/apache/spark/pull/52883#discussion_r2713289801


##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -6158,13 +6164,7 @@
     "message" : [
       "Invalid call to <function>; only valid Theta sketch buffers are 
supported as inputs (such as those produced by the `theta_sketch_agg` 
function)."
     ],
-    "sqlState" : "22546"
-  },
-  "THETA_INVALID_LG_NOM_ENTRIES" : {
-    "message" : [
-      "Invalid call to <function>; the `lgNomEntries` value must be between 
<min> and <max>, inclusive: <value>."
-    ],
-    "sqlState" : "22546"
+    "sqlState" : "22000"

Review Comment:
   yes, this is for the `*_INVALID_INPUT_SKETCH_BUFFER` error. I was looking at 
https://docs.databricks.com/aws/en/error-messages/sqlstates and I believe that 
error is more of a 'data exception' than a 'The value for a routine argument is 
not valid'. What do you think?



-- 
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