-
Notifications
You must be signed in to change notification settings - Fork 4.7k
HIVE-28875 Numbers should be compared with equals(), not with == #5743
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
base: master
Are you sure you want to change the base?
Conversation
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.
As I see, you have made several PR for equals change. Please wait for @ayushtkn and @deniskuzZ recommendation about the style. If it meets the community standard, I think this PR's could be 1 "big" does not need to separate to 10+ small.
I did a small test for confirming the same for Double datatype - There is a difference -
I agree with @aturoczy comment. Instead of creating small PRs for handling each of these minor details its better to handle it in a single PR. Its always better to group similar ones and post aggregated PRs on them. |
@SourabhBadhya @aturoczy I didn't mean to overwhelm the repo with PRs. But still I prefer to have several atomic PRs because it's easier to complete each PR. As for equals(): it has some specifics for Strings and numbers. If both strings are interned (which I didn't check), it's ok to compare their values using == |
@dk2k Please rebase your PR for the tests to pass. |
@SourabhBadhya I can merge master branch. Is it what you need? |
@dk2k Yes you can do that as well. |
@SourabhBadhya I merged |
|
No description provided.