mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-07 17:10:49 +00:00
Merge branch 'qoega/random-table-function-small' of github.com:qoega/clickhouse into qoega/random-table-function-small
This commit is contained in:
commit
db6764d0d6
@ -409,6 +409,11 @@ StoragePtr TableFunctionRandom::executeImpl(const ASTPtr & ast_function, const C
|
|||||||
|
|
||||||
ASTs & args = args_func.at(0)->children;
|
ASTs & args = args_func.at(0)->children;
|
||||||
|
|
||||||
|
if (args.size() < 2)
|
||||||
|
throw Exception("Table function '" + getName() + "' requires at least two arguments: "\
|
||||||
|
" structure, limit(, max_array_length, max_string_length, random_seed).",
|
||||||
|
ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
|
||||||
|
|
||||||
if (args.size() > 5)
|
if (args.size() > 5)
|
||||||
throw Exception("Table function '" + getName() + "' requires at most five arguments: "\
|
throw Exception("Table function '" + getName() + "' requires at most five arguments: "\
|
||||||
" structure, limit, max_array_length, max_string_length, random_seed.",
|
" structure, limit, max_array_length, max_string_length, random_seed.",
|
||||||
|
Loading…
Reference in New Issue
Block a user