-
Notifications
You must be signed in to change notification settings - Fork 298
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
[AMORO-3279] Get the total result when retrieve the optimizing tables from db #3283
[AMORO-3279] Get the total result when retrieve the optimizing tables from db #3283
Conversation
828f397
to
9adff28
Compare
...ams/src/main/java/org/apache/amoro/server/dashboard/controller/OptimizerGroupController.java
Outdated
Show resolved
Hide resolved
9adff28
to
5393cdf
Compare
@zhoujinsong @majin1102 could you please have a look at this when you're free, thanks. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3283 +/- ##
============================================
+ Coverage 22.54% 30.17% +7.63%
- Complexity 2312 3841 +1529
============================================
Files 397 580 +183
Lines 38201 48020 +9819
Branches 5437 6207 +770
============================================
+ Hits 8611 14491 +5880
- Misses 28863 32538 +3675
- Partials 727 991 +264
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.
Thanks for the contribution!
The PR looks good overall, but I have a minor suggestion for improvement.
amoro-ams/src/main/java/org/apache/amoro/server/table/DefaultTableService.java
Show resolved
Hide resolved
497aa0b
to
dbae79c
Compare
… from db Before the change, the total number of optimizing tables with the given filter will be retrieved from memory, this means that we'll retrieve info from two different place, after the change, we'll retrieve the optimizing tables and total result both frm db by using PageHelper.
dbae79c
to
606837f
Compare
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.
@zhoujinsong thanks for the review and merging! |
Why are the changes needed?
Close #3279
Brief change log
Before the change, the total number of optimizing tables with the given filter will be retrieved from memory, this means that we'll retrieve info from two different place, after the change, we'll retrieve the optimizing tables and total result both frm db by using PageHelper.
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