bozhang2820 commented on code in PR #41121:
URL: https://github.com/apache/spark/pull/41121#discussion_r1190733125


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -870,12 +876,24 @@
     ],
     "sqlState" : "42000"
   },
+  "INVALID_DRIVER_MEMORY" : {
+    "message" : [
+      "System memory <systemMemory> must be at least <minSystemMemory>. Please 
increase heap size using the --driver-memory option or \"<config>\" in Spark 
configuration."
+    ],
+    "sqlState" : "F0000"

Review Comment:
   @srielau, could you suggest on the sqlState here? It seems that we don't 
have one for invalid config?



##########
core/src/main/resources/error/error-classes.json:
##########
@@ -870,12 +876,24 @@
     ],
     "sqlState" : "42000"
   },
+  "INVALID_DRIVER_MEMORY" : {
+    "message" : [
+      "System memory <systemMemory> must be at least <minSystemMemory>. Please 
increase heap size using the --driver-memory option or \"<config>\" in Spark 
configuration."
+    ],
+    "sqlState" : "F0000"
+  },
   "INVALID_EMPTY_LOCATION" : {
     "message" : [
       "The location name cannot be empty string, but `<location>` was given."
     ],
     "sqlState" : "42K05"
   },
+  "INVALID_EXECUTOR_MEMORY" : {
+    "message" : [
+      "Executor memory <executorMemory> must be at least <minSystemMemory>. 
Please increase executor memory using the --executor-memory option or 
\"<config>\" in Spark configuration."
+    ],
+    "sqlState" : "F0000"

Review Comment:
   Ditto.



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