Skip to content

Commit

Permalink
Fix fmt error in RuntimeMetrics
Browse files Browse the repository at this point in the history
After fmt package was updated, some of the VELOX_CHECK_XXX fails with
"error: 'fmt::v10::detail::type_is_unformattable_for<const facebook::
velox::RuntimeCounter::Unit, char> _' has incomplete type". This commit
fixes this error in RuntimeMetrics.cpp
  • Loading branch information
yingsu00 committed Feb 12, 2024
1 parent 76b5d0e commit e050e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion velox/common/base/RuntimeMetrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void RuntimeMetric::merge(const RuntimeMetric& other)
#endif
#endif
{
VELOX_CHECK_EQ(unit, other.unit);
VELOX_CHECK(unit == other.unit);
sum += other.sum;
count += other.count;
min = std::min(min, other.min);
Expand Down

0 comments on commit e050e31

Please sign in to comment.