MaxGekk commented on code in PR #38972:
URL: https://github.com/apache/spark/pull/38972#discussion_r1044445378
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -109,6 +109,11 @@
"The column <columnName> already exists. Consider to choose another name
or rename the existing column."
]
},
+ "COLUMN_NOT_FOUND" : {
+ "message" : [
+ "The column <colName> does not exist."
Review Comment:
```suggestion
"The column <colName> cannot be found. Verify the spelling and
correctness of the column name according to the SQL config
\"spark.sql.caseSensitive\"."
```
##########
sql/core/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveSessionCatalog.scala:
##########
@@ -155,7 +155,7 @@ class ResolveSessionCatalog(val catalogManager:
CatalogManager)
case DescribeColumn(ResolvedV1TableIdentifier(ident), column, isExtended,
output) =>
column match {
case u: UnresolvedAttribute =>
- throw QueryCompilationErrors.columnDoesNotExistError(u.name)
+ throw QueryCompilationErrors.columnNotExistError(u.name)
Review Comment:
Should be `NotExists` but let's rename it to `columnNotFoundError`
--
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]