bozhang2820 commented on code in PR #38998:
URL: https://github.com/apache/spark/pull/38998#discussion_r1045389644
##########
core/src/test/scala/org/apache/spark/SparkThrowableSuite.scala:
##########
@@ -147,6 +147,18 @@ class SparkThrowableSuite extends SparkFunSuite {
assert(rereadErrorClassToInfoMap == errorReader.errorInfoMap)
}
+ test("Error class names should contain only capital letters, numbers and
underscores") {
+ val allowedChars = "[A-Z0-9_]*"
+ errorReader.errorInfoMap.foreach { e =>
+ assert(e._1.matches(allowedChars))
Review Comment:
Thanks for the suggestion. Updated.
--
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]