Remove virtual dispatch in constructor

This commit is contained in:
achimbab 2022-01-03 10:48:47 +09:00
parent 9359a4abd4
commit eae38c0ac0

View File

@ -98,12 +98,12 @@ public:
if (!std::isfinite(confidence_level))
{
throw Exception("Aggregate function " + getName() + " requires finite parameter values.", ErrorCodes::BAD_ARGUMENTS);
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Aggregate function {} requires finite parameter values.", Data::name);
}
if (confidence_level <= 0.0f || confidence_level >= 1.0f)
{
throw Exception("Confidence level parameter must be between 0 and 1 in aggregate function " + getName(), ErrorCodes::BAD_ARGUMENTS);
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Confidence level parameter must be between 0 and 1 in aggregate function {}.", Data::name);
}
}