mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
fix table function file [#add_table_function_file]
This commit is contained in:
parent
358e0183f5
commit
42f028ddde
@ -29,9 +29,8 @@ namespace DB
|
||||
/// Parse args
|
||||
ASTs & args_func = typeid_cast<ASTFunction &>(*ast_function).children;
|
||||
|
||||
if (args_func.size() != 3)
|
||||
throw Exception("Table function 'file' requires exactly three arguments: path, format and structure.",
|
||||
ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
|
||||
if (!args_func.arguments)
|
||||
throw Exception("Table function 'mysql' must have arguments.", ErrorCodes::LOGICAL_ERROR);
|
||||
|
||||
ASTs & args = typeid_cast<ASTExpressionList &>(*args_func.at(0)).children;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user