-
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
planner: fix wrong request data type when pushing down avg aggfuncs #12051
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12051 +/- ##
===========================================
Coverage 81.5418% 81.5418%
===========================================
Files 447 447
Lines 95990 95990
===========================================
Hits 78272 78272
Misses 12162 12162
Partials 5556 5556 |
6c62725
to
fc28978
Compare
Is it hard to add unit test? |
Yes, I don't know how to add unit test. Any idea? |
We can build the plan refer to this. |
fc28978
to
4e7307d
Compare
/run-all-tests |
/run-unit-test |
I add unit test . PTAL @zz-jason @winoros @lzmhhh123 |
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 |
What problem does this PR solve?
When runing two
avg()
in one sql, the request types of aggfuncs in DAGRequest maybe wrong. (Now tikv can work well, because of it has type deduction and ignore the wrong infomation.)What is changed and how it works?
Add a cursor to choose the right schema column.
Check List
Tests