Skip to content

Commit 8ea193e

Browse files
taiyang-liliuneng1994
authored andcommitted
fix exception message
(cherry picked from commit 3bd29f0)
1 parent 5a78c65 commit 8ea193e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Functions/map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class FunctionMapFromArrays : public IFunction
179179
if (const auto * keys_type = checkAndGetDataType<DataTypeArray>(arguments[0].get()))
180180
key_type = keys_type->getNestedType();
181181
else
182-
throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "First argument for function {} must be Array or Map", getName());
182+
throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "First argument for function {} must be an Array", getName());
183183

184184
DataTypePtr value_type;
185185
if (const auto * value_array_type = checkAndGetDataType<DataTypeArray>(arguments[1].get()))

0 commit comments

Comments
 (0)