-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
executor: using ToHashKey to check equality of decimal when count(distinct) (#9901) #9931
Conversation
/run-all-tests tidb-test=release-2.1 pd=release-2.1 tikv=release-2.1 |
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.
lgtm
if err != nil || isNull { | ||
return encodedBytes, isNull, errors.Trace(err) | ||
break | ||
} | ||
encodedBytes = appendInt64(encodedBytes, buf, val) |
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.
encodedBytes = appendInt64(encodedBytes, buf, val) | |
val, isNull, err = arg.EvalInt(sctx, row) | |
if err == nil && !isNull { | |
encodedBytes = appendInt64(encodedBytes, buf, val) | |
} |
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.
It's ok here.
I'll change this format in master.
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.
LGTM
cherry-pick #9901