Update TableFunctionGenerate.cpp

This commit is contained in:
alexey-milovidov 2020-03-05 18:39:03 +03:00 committed by GitHub
parent 92f84c8839
commit adcf1735d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,12 +35,12 @@ StoragePtr TableFunctionGenerate::executeImpl(const ASTPtr & ast_function, const
ASTs & args = args_func.at(0)->children;
if (args.size() < 1)
throw Exception("Table function '" + getName() + "' requires at least one argument: "\
throw Exception("Table function '" + getName() + "' requires at least one argument: "
" structure(, max_array_length, max_string_length, random_seed).",
ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
if (args.size() > 4)
throw Exception("Table function '" + getName() + "' requires at most four arguments: "\
throw Exception("Table function '" + getName() + "' requires at most four arguments: "
" structure, max_array_length, max_string_length, random_seed.",
ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);