diff --git a/be/src/exprs/hybrid_set.h b/be/src/exprs/hybrid_set.h index 81f71d45f2..642d99af1b 100644 --- a/be/src/exprs/hybrid_set.h +++ b/be/src/exprs/hybrid_set.h @@ -86,7 +86,7 @@ public: void insert(const void* data) override { if (data == nullptr) return; - if (sizeof(T) >= 16) { + if constexpr (sizeof(T) >= 16) { // for largeint, it will core dump with no memcpy T value; memcpy(&value, data, sizeof(T));