(Hopefully) fix clang-tidy

This commit is contained in:
Robert Schulze 2023-10-08 16:30:02 +00:00
parent 38c64b3cd1
commit 0f7ca6149b
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -69,7 +69,7 @@ public:
if (!interval_type) if (!interval_type)
throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "Illegal type {} of argument of function {}. " throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "Illegal type {} of argument of function {}. "
"Should be an interval of time", arguments[1].type->getName(), getName()); "Should be an interval of time", arguments[1].type->getName(), getName());
switch (interval_type->getKind()) switch (interval_type->getKind()) // NOLINT(bugprone-switch-missing-default-case)
{ {
case IntervalKind::Nanosecond: case IntervalKind::Nanosecond:
case IntervalKind::Microsecond: case IntervalKind::Microsecond:
@ -204,7 +204,7 @@ private:
if (num_units <= 0) if (num_units <= 0)
throw Exception(ErrorCodes::ARGUMENT_OUT_OF_BOUND, "Value for second argument of function {} must be positive.", getName()); throw Exception(ErrorCodes::ARGUMENT_OUT_OF_BOUND, "Value for second argument of function {} must be positive.", getName());
switch (interval_type->getKind()) switch (interval_type->getKind()) // NOLINT(bugprone-switch-missing-default-case)
{ {
case IntervalKind::Nanosecond: case IntervalKind::Nanosecond:
return execute<TimeDataType, DataTypeDateTime64, IntervalKind::Nanosecond>(time_data_type, time_column, num_units, result_type, time_zone, scale); return execute<TimeDataType, DataTypeDateTime64, IntervalKind::Nanosecond>(time_data_type, time_column, num_units, result_type, time_zone, scale);