diff --git a/be/src/olap/hll.h b/be/src/olap/hll.h index 1f97f30ae8bbbd..0ae5539163c904 100644 --- a/be/src/olap/hll.h +++ b/be/src/olap/hll.h @@ -109,7 +109,7 @@ class HyperLogLog { } } - HyperLogLog(HyperLogLog&& other) { + HyperLogLog(HyperLogLog&& other) noexcept { this->_type = other._type; switch (other._type) { case HLL_DATA_EMPTY: @@ -131,7 +131,7 @@ class HyperLogLog { } } - HyperLogLog& operator=(HyperLogLog&& other) { + HyperLogLog& operator=(HyperLogLog&& other) noexcept { if (this != &other) { if (_registers != nullptr) { delete[] _registers; diff --git a/be/src/util/bitmap_value.h b/be/src/util/bitmap_value.h index 6bc88d4f0a1b69..b7a046921b5d6d 100644 --- a/be/src/util/bitmap_value.h +++ b/be/src/util/bitmap_value.h @@ -1208,7 +1208,7 @@ class BitmapValue { } } - BitmapValue(BitmapValue&& other) { + BitmapValue(BitmapValue&& other) noexcept { _type = other._type; switch (other._type) { case EMPTY: @@ -1265,7 +1265,7 @@ class BitmapValue { return buf; } - BitmapValue& operator=(BitmapValue&& other) { + BitmapValue& operator=(BitmapValue&& other) noexcept { if (this == &other) { return *this; } diff --git a/be/src/util/quantile_state.h b/be/src/util/quantile_state.h index c3b8cf83001935..e2b782cf268fbd 100644 --- a/be/src/util/quantile_state.h +++ b/be/src/util/quantile_state.h @@ -46,6 +46,11 @@ class QuantileState { QuantileState(); explicit QuantileState(float compression); explicit QuantileState(const Slice& slice); + QuantileState& operator=(const QuantileState& other) noexcept = default; + QuantileState(const QuantileState& other) noexcept = default; + QuantileState& operator=(QuantileState&& other) noexcept = default; + QuantileState(QuantileState&& other) noexcept = default; + void set_compression(float compression); bool deserialize(const Slice& slice); size_t serialize(uint8_t* dst) const;