-
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: fix memory corrupt in COUNT/JSON_OBJECTAGG/GROUP_CONCAT #17106
Conversation
/run-all-tests |
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
db6a385
to
b4909d0
Compare
/run-all-tests |
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #17106 +/- ##
===========================================
Coverage ? 79.9977%
===========================================
Files ? 510
Lines ? 139049
Branches ? 0
===========================================
Hits ? 111236
Misses ? 18847
Partials ? 8966 |
Would it impact the performance of these functions? |
It has a little impact which cant be seen in benchmark |
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
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
/run-all-tests |
@SunRunAway merge failed. |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.1 in PR #17172 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-4.0 in PR #17173 |
What problem does this PR solve?
Issue Number: close #17148
Problem Summary:
What is changed and how it works?
Proposal: xxx
What's Changed:
Add a unit test, corrupt the original
chunk
memory afterUpdatePartialResult
is called. It exposes two more problemcount(distinct <string>)
, It's a bug introduced by executor: optimize count distinct with single column #15323JSON_OBJECTAGG
, exposed by the unit test.GROUP_CONCAT(ORDER BY <string>)
, exposed by the unit test.Copy the string to avoid memory reference.
How it Works:
Related changes
Check List
Tests
Side effects
Release note