diff --git a/src/Functions/map.cpp b/src/Functions/map.cpp index 14453de06465..21a4ab8de7da 100644 --- a/src/Functions/map.cpp +++ b/src/Functions/map.cpp @@ -179,7 +179,7 @@ class FunctionMapFromArrays : public IFunction if (const auto * keys_type = checkAndGetDataType(arguments[0].get())) key_type = keys_type->getNestedType(); else - throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "First argument for function {} must be Array or Map", getName()); + throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "First argument for function {} must be an Array", getName()); DataTypePtr value_type; if (const auto * value_array_type = checkAndGetDataType(arguments[1].get()))