-
Notifications
You must be signed in to change notification settings - Fork 306
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
[hotfix]Fix the incorrent paramater transmission of PageNum and PageSize #3343
Conversation
@zhangwl9 thanks for the contribution, the change here LGTM. As there was some ut want to cover the logic, so could you please help to check
|
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.
After introducing github.PageHelper, do we still need to pass the pageNumber and limit parameters to the mapper?
It seems that these two parameters are not required in the process of constructing SQL.
…and pageSize in 'PageHelper#startPage' and the TableMetaMapper#selectTableRuntimesForOptimizerGroup,OptimizingMapper#selectOptimizingProcesses
489f3e4
to
8fe4573
Compare
@klion26 Thank you very much for your advice. I have tested and found the following:
Therefore, pageNum and pageSize are not needed during SQL construction. I have already fixed it.
|
|
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.
Thanks for the fix, LGTM
@zhangwl9 Seems there are some tests failed, could you please help to check it, thanks. |
…and pageSize in 'PageHelper#startPage' and the TableMetaMapper#selectTableRuntimesForOptimizerGroup,OptimizingMapper#selectOptimizingProcesses
…wl9/amoro into AMORO-FixBug-in-PageHelper
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3343 +/- ##
============================================
+ Coverage 21.59% 27.48% +5.89%
- Complexity 2309 3511 +1202
============================================
Files 426 593 +167
Lines 39719 48303 +8584
Branches 5624 6233 +609
============================================
+ Hits 8577 13278 +4701
- Misses 30414 34092 +3678
- Partials 728 933 +205
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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
Why are the changes needed?
Close #xxx.
Brief change log
We need to to transmit parameters of pageNum and pageSize in 'PageHelper#startPage' and the TableMetaMapper#selectTableRuntimesForOptimizerGroup,OptimizingMapper#selectOptimizingProcesses.
We correct the inconsistent problem.
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation