cloud-fan commented on code in PR #37969:
URL: https://github.com/apache/spark/pull/37969#discussion_r977762334
##########
core/src/main/scala/org/apache/spark/SparkThrowableHelper.scala:
##########
@@ -69,37 +31,8 @@ object ErrorMessageFormat extends Enumeration {
* construct error messages.
*/
private[spark] object SparkThrowableHelper {
- val errorClassesUrl: URL =
- Utils.getSparkClassLoader.getResource("error/error-classes.json")
- val errorClassToInfoMap: SortedMap[String, ErrorInfo] = {
- val mapper: JsonMapper = JsonMapper.builder()
- .addModule(DefaultScalaModule)
- .build()
- mapper.readValue(errorClassesUrl, new TypeReference[SortedMap[String,
ErrorInfo]]() {})
- }
-
- def getParameterNames(errorClass: String, errorSubCLass: String):
Array[String] = {
Review Comment:
this method is called no where.
--
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]