karenfeng commented on a change in pull request #34454:
URL: https://github.com/apache/spark/pull/34454#discussion_r746909981
##########
File path: core/src/main/resources/error/error-classes.json
##########
@@ -54,6 +54,9 @@
"IF_PARTITION_NOT_EXISTS_UNSUPPORTED" : {
"message" : [ "Cannot write, IF NOT EXISTS is not supported for table: %s"
]
},
+ "ILLEGAL_FORMAT_ARGUMENT_INDEX" : {
Review comment:
There are a couple different ways for a string to have an illegal
format, right? I'm not sure how to unify them all, but we can definitely have a
more generic class here to represent that a string cannot contain a given
substring, eg:
```
"ILLEGAL_SUBSTRING" : {
"message" : [ "%s cannot contain %s." ]
}
```
--
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]