MaxGekk commented on code in PR #39946:
URL: https://github.com/apache/spark/pull/39946#discussion_r1100680165
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -774,6 +774,12 @@
"The expected format is ByteString, but was <unsupported> (<class>)."
]
},
+ "INVALID_COLUMN_NAME" : {
+ "message" : [
+ "Column name <columnName> contains invalid character(s). Please use
alias to rename it."
Review Comment:
The message is slightly generic, and doesn't give a clear picture. From the
source code, the error is a datasource specific, and raised when the datasource
doesn't support a file name that is the same as a column name. Can we rephrase
it:
```suggestion
"The datasource <datasource> cannot save the column <columnName>
because its name contains some characters that are not allowed in file paths.
Please, use an alias to rename it."
```
--
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]