Update src/Functions/FunctionMapMapped.h

Co-authored-by: Vladimir C <vdimir@yandex-team.ru>
This commit is contained in:
hexiaoting 2022-01-24 16:21:28 +08:00 committed by vdimir
parent ed39edda67
commit 36939f1d5c
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -94,7 +94,7 @@ public:
+ toString(arguments.size()) + ".",
ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
if (arguments.size() > 2 && Impl::needOneMap())
throw Exception("Function " + getName() + " needs one map argument.", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
throw Exception(ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH, "Function '{}' needs one map argument", getName());
const auto * data_type_function = checkAndGetDataType<DataTypeFunction>(arguments[0].type.get());