mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
(Hopefully) fix clang-tidy
This commit is contained in:
parent
38c64b3cd1
commit
0f7ca6149b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user