ala commented on PR #58282:
URL: https://github.com/apache/spark/pull/58282#issuecomment-5461689017

   My understanding is that the purpose of the JSON-based infra for the errors 
classes is to put the content of all the error messages in one central 
human-readable place. This enables, for example, quick audit of all the error 
messages and their contents. As features, configs, etc. are added or retired, 
we can more easily tweak the messaging to guide the users towards or away from 
them. It also enables a translation layer to be implemented, so that the users 
can receive localized errors. Hard-coding extra information in Scala code hides 
it from the auditing and/or translation workflows.
   
   I am not sure what's the current policy in Spark, but in Delta - for the 
reasons mentioned above - we are trying to gradually eradicate any user-facing 
hard-coded error messages in Scala.


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