diff --git a/velox/exec/Aggregate.h b/velox/exec/Aggregate.h index b2d60501112..69e7e16bd43 100644 --- a/velox/exec/Aggregate.h +++ b/velox/exec/Aggregate.h @@ -434,7 +434,7 @@ class Aggregate { if (isInitialized(group)) { auto accumulator = value(group); std::destroy_at(accumulator); - ::memset(accumulator, 0, sizeof(T)); + ::memset(static_cast(accumulator), 0, sizeof(T)); } }