-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: reset groupChecker for StreamAggExec when Close #10615
Conversation
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #10615 +/- ##
================================================
+ Coverage 77.6763% 77.6916% +0.0152%
================================================
Files 413 413
Lines 87553 87559 +6
================================================
+ Hits 68008 68026 +18
+ Misses 14387 14381 -6
+ Partials 5158 5152 -6 |
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
func (s *testSuite1) TestIssue10608(c *C) { | ||
tk := testkit.NewTestKitWithInit(c, s.store) | ||
tk.MustExec(`drop table if exists t, s;`) | ||
tk.MustExec("create table t(a int)") |
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 test case currently does not cover the bug since it can't reproduce the bug.
we should modify this line to create table t(a int primary key);
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.
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.
What do you mean by it can't reproduce the bug
?
@cosven
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.
what I expect
this test case should fail in previous commits(version), such as 3.0.0-beta
it should return error 1105 - subquery returns more than 1 row
what I saw instead
it passed.
What do you mean by it can't reproduce the bug?
this test case can't prove this PR fixes the bug described in issue #10608, because this unittest case will always pass.
What problem does this PR solve?
Fix #10608
What is changed and how it works?
Reset StreamAggExec.groupChecker when Close.
Check List
Tests
Code changes
Side effects
N/A
Related changes