-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Kylin 3597 fix sonar issues #398
Conversation
Can one of the admins verify this patch? |
CachedRowSet crs = new FixedCachedRowSetImpl(); | ||
crs.populate(resultSet); | ||
return crs; | ||
try (CachedRowSet crs = new FixedCachedRowSetImpl()) { |
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.
I'm afraid this will lead to error.
logger.info("Wild estimate of base aggr cache is " + mbEstimateBaseAggrCache + " MB"); | ||
int mbEstimateBaseAggrCache = (int) (aggregationScanner.getEstimateSizeOfAggrCache() | ||
/ MemoryBudgetController.ONE_MB); | ||
logger.info("Wild estimate of base aggr cache is " + mbEstimateBaseAggrCache + " MB"); |
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.
We can use the "{}" to format the log output.
Codecov Report
@@ Coverage Diff @@
## master #398 +/- ##
============================================
- Coverage 24.39% 24.38% -0.01%
+ Complexity 4935 4934 -1
============================================
Files 1143 1143
Lines 69259 69259
Branches 9859 9859
============================================
- Hits 16897 16892 -5
- Misses 50665 50668 +3
- Partials 1697 1699 +2
Continue to review full report at Codecov.
|
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
No description provided.