Skip to content

Commit

Permalink
fix exception message
Browse files Browse the repository at this point in the history
(cherry picked from commit 3bd29f0)
  • Loading branch information
taiyang-li authored and liuneng1994 committed Apr 25, 2023
1 parent 5a78c65 commit 8ea193e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Functions/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class FunctionMapFromArrays : public IFunction
if (const auto * keys_type = checkAndGetDataType<DataTypeArray>(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<DataTypeArray>(arguments[1].get()))
Expand Down

0 comments on commit 8ea193e

Please sign in to comment.