github-actions[bot] commented on code in PR #33127:
URL: https://github.com/apache/doris/pull/33127#discussion_r1546235706
##########
be/src/cloud/cloud_cumulative_compaction_policy.cpp:
##########
@@ -182,7 +182,7 @@ int
CloudSizeBasedCumulativeCompactionPolicy::pick_input_rowsets(
}
int64_t
CloudSizeBasedCumulativeCompactionPolicy::cloud_promotion_size(CloudTablet* t)
const {
- int64_t promotion_size = t->base_size() * _promotion_ratio;
+ int64_t promotion_size = int64_t(t->base_size() * _promotion_ratio);
Review Comment:
warning: use auto when initializing with a cast to avoid duplicating the
type name [modernize-use-auto]
```suggestion
auto promotion_size = int64_t(t->base_size() * _promotion_ratio);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]