-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41181][SQL] Migrate the map options errors onto error classes #38730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@panbingkun Could you resolve conflicts, please. |
|
Can one of the admins verify this patch? |
Done. |
| "subClass" : { | ||
| "NON_STRING_TYPE" : { | ||
| "message" : [ | ||
| "A type of keys and values in map() must be string, but got <map>." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: map -> mapType
| "A type of keys and values in map() must be string, but got <map>." | ||
| ] | ||
| }, | ||
| "NOT_MAP_FUNCTION" : { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not NON_MAP_FUNCTION?
| messageParameters = Map("map" -> toSQLType(m.dataType))) | ||
| } | ||
|
|
||
| def nonMapFunctionNotAllowedError(): Throwable = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be sure the names are consistent. not or non
| }, | ||
| "NOT_MAP_FUNCTION" : { | ||
| "message" : [ | ||
| "Must use a map() function for options." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "Must use a map() function for options." | |
| "Must use the `map()` function for options." |
MaxGekk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for CI.
|
+1, LGTM. Merging to master. |
### What changes were proposed in this pull request? The pr aims to migrate the map options errors onto error classes. ### Why are the changes needed? The changes improve the error framework. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. Closes apache#38730 from panbingkun/SPARK-41181. Authored-by: panbingkun <[email protected]> Signed-off-by: Max Gekk <[email protected]>
### What changes were proposed in this pull request? The pr aims to migrate the map options errors onto error classes. ### Why are the changes needed? The changes improve the error framework. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. Closes apache#38730 from panbingkun/SPARK-41181. Authored-by: panbingkun <[email protected]> Signed-off-by: Max Gekk <[email protected]>
What changes were proposed in this pull request?
The pr aims to migrate the map options errors onto error classes.
Why are the changes needed?
The changes improve the error framework.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.