Skip to content

Commit 88ecbb8

Browse files
author
xiao.dong
committed
fix warning
1 parent c7e52a0 commit 88ecbb8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/iceberg/metrics.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ class ICEBERG_EXPORT Metrics {
3333
public:
3434
Metrics() = default;
3535

36-
Metrics(int64_t row_count, std::unordered_map<int64_t, int64_t> column_sizes = {},
37-
std::unordered_map<int64_t, int64_t> value_counts = {},
38-
std::unordered_map<int64_t, int64_t> null_value_counts = {},
39-
std::unordered_map<int64_t, int64_t> nan_value_counts = {},
40-
std::unordered_map<int64_t, Literal> lower_bounds = {},
41-
std::unordered_map<int64_t, Literal> upper_bounds = {})
36+
explicit Metrics(int64_t row_count,
37+
std::unordered_map<int64_t, int64_t> column_sizes = {},
38+
std::unordered_map<int64_t, int64_t> value_counts = {},
39+
std::unordered_map<int64_t, int64_t> null_value_counts = {},
40+
std::unordered_map<int64_t, int64_t> nan_value_counts = {},
41+
std::unordered_map<int64_t, Literal> lower_bounds = {},
42+
std::unordered_map<int64_t, Literal> upper_bounds = {})
4243
: row_count_(row_count),
4344
column_sizes_(std::move(column_sizes)),
4445
value_counts_(std::move(value_counts)),

0 commit comments

Comments
 (0)