-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Bug] Use equals() method to judge whether "type" are equal #3310
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
I don't why, but I found that sometimes when I use "==" to judge the equality of type, it return false, even if the types are exactly same.
|
@morningman |
I agree. I am just puzzled why they are not the same object. I think they should be.... |
Without knowing why, we can still make Doris work in the right way. |
OK, I will try to find out all |
|
I think we should add some unit tests. |
OK, I added a case described in #3309 |
kangkaisen
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.
+1. LGTM
kangpinghuang
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.
+1,LGTM
) I don't why, but I found that sometimes when I use "==" to judge the equality of type, it return false, even if the types are exactly same. ISSUE: apache#3309 This CL only changes == to equals() to solve the problem, but the reason is still unknown.
I don't why, but I found that sometimes when I use "==" to judge the equality of type,
it return false, even if the types are exactly same.
ISSUE: #3309
This CL only changes
==toequals()to solve the problem, but the reason is still unknown.