MaxGekk commented on code in PR #54900:
URL: https://github.com/apache/spark/pull/54900#discussion_r3387834514
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -7004,6 +7004,12 @@
],
"sqlState" : "42803"
},
+ "UNRESOLVED_COLLECTION_CLS" : {
+ "message" : [
+ "Custom collection class is not resolved. Ensure the class is accessible
and properly defined before analysis."
Review Comment:
The second sentence of the message is inaccurate. The error fires when
`customCollectionCls == None` — no custom collection class was provided at all.
"Ensure the class is accessible and properly defined" implies a class exists
but can't be loaded, which would send the reader chasing a class-loading
problem that doesn't exist.
Suggested replacement:
```suggestion
"Cannot determine the data type of an unresolved MapObjects
expression. The expression must be resolved through analysis before its type
can be accessed."
```
--
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]