fix build

This commit is contained in:
Nikita Mikhaylov 2021-07-07 10:44:05 +00:00
parent 356c11bb25
commit b92d47fcd0
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public:
const auto * arg = arguments[index].get();
if ((index == 1 || index == 3) && !WhichDataType(arg).isFloat64())
throw Exception(
ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT
ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT,
"Illegal type {} of argument {} of function {}. Must be Float64",
arg->getName(), index + 1, getName()
);

View File

@ -57,7 +57,7 @@ public:
throw Exception(
ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT,
"Illegal type {} of argument {} of function {}. Must be UInt64",
arg->getName(), i, getName()
arg->getName(), index, getName()
);
}
}