karenfeng commented on a change in pull request #33864:
URL: https://github.com/apache/spark/pull/33864#discussion_r710576439



##########
File path: core/src/main/resources/error/error-classes.json
##########
@@ -54,13 +90,25 @@
     "message" : [ "The fraction of sec must be zero. Valid range is [0, 60]." 
],
     "sqlState" : "22023"
   },
+  "INVALID_JDBC_NUM_PARTITIONS" : {
+    "message" : [ "Invalid value `%s` for parameter `%s` in table writing via 
JDBC. The minimum value is 1." ],
+    "sqlState" : "42000"
+  },
+  "INVALID_JDBC_TRANSACTION_ISOLATION_LEVEL" : {
+    "message" : [ "Invalid value `%s` for parameter `%s`. This can be `NONE`, 
`READ_UNCOMMITTED`, `READ_COMMITTED`, `REPEATABLE_READ` or `SERIALIZABLE`." ],
+    "sqlState" : "42000"
+  },
   "INVALID_JSON_SCHEMA_MAPTYPE" : {
     "message" : [ "Input schema %s can only contain StringType as a key type 
for a MapType." ]
   },
   "MISSING_COLUMN" : {
     "message" : [ "cannot resolve '%s' given input columns: [%s]" ],
     "sqlState" : "42000"
   },
+  "MISSING_JDBC_TABLE_NAME_AND_QUERY" : {
+    "message" : [ "Option '%s' or '%s' is required." ],
+    "sqlState" : "08006"

Review comment:
       This feels like the wrong SQLSTATE. Maybe `22023`?




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