-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-24268][SQL] Use datatype.catalogString in error messages #21804
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
|
Test build #93236 has finished for PR 21804 at commit
|
|
Test build #93237 has finished for PR 21804 at commit
|
|
Test build #93252 has finished for PR 21804 at commit
|
|
|
||
|
|
||
| private[sql] object NumericType extends AbstractDataType { | ||
| private[spark] object NumericType extends AbstractDataType { |
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.
(This is just a question...) Is it ok for some types to have private[spark] and the others to have private[sql]? I feel a little inconsistent policy for that. Since the other components (e.g., ml and mllib) depend on the sql type system, is it bad to make all the modifiers in their types private[spark] consistently?
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.
I am fine changing them all to private[spark]. @gatorsmile @HyukjinKwon what do you think?
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.
To me, let's leave them out for now, and fix or discuss when the change is actually needed later.
|
Test build #93276 has finished for PR 21804 at commit
|
|
Test build #93285 has finished for PR 21804 at commit
|
|
LGTM Thanks! Merged to master. |
What changes were proposed in this pull request?
As stated in #21321, in the error messages we should use
catalogString. This is not the case, as SPARK-22893 usedsimpleStringin order to have the same representation everywhere and it missed some places.The PR unifies the messages using alway the
catalogStringrepresentation of the dataTypes in the messages.How was this patch tested?
existing/modified UTs