mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Changed name and added comments
This commit is contained in:
parent
1ec249755e
commit
fbe7e56e93
@ -46,7 +46,7 @@ StoragePtr ITableFunctionFileLike::executeImpl(const ASTPtr & ast_function, cons
|
||||
/// Create sample block
|
||||
|
||||
Block sample_block;
|
||||
parseColumnsList(structure, sample_block, context);
|
||||
parseColumnsListFromString(structure, sample_block, context);
|
||||
|
||||
/// Create table
|
||||
StoragePtr storage = getStorage(filename, format, sample_block, const_cast<Context &>(context), table_name);
|
||||
|
@ -75,7 +75,7 @@ StoragePtr TableFunctionValues::executeImpl(const ASTPtr & ast_function, const C
|
||||
std::string structure = args[0]->as<ASTLiteral &>().value.safeGet<String>();
|
||||
|
||||
Block sample_block;
|
||||
parseColumnsList(structure, sample_block, context);
|
||||
parseColumnsListFromString(structure, sample_block, context);
|
||||
|
||||
MutableColumns res_columns = sample_block.cloneEmptyColumns();
|
||||
|
||||
|
@ -12,7 +12,7 @@ namespace ErrorCodes
|
||||
extern const int SYNTAX_ERROR;
|
||||
}
|
||||
|
||||
void parseColumnsList(const std::string & structure, Block & sample_block, const Context & context)
|
||||
void parseColumnsListFromString(const std::string & structure, Block & sample_block, const Context & context)
|
||||
{
|
||||
Expected expected;
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
void parseColumnsList(const std::string & structure, Block & sample_block, const Context & context);
|
||||
/*Parses a common argument for table functions such as table structure given in string*/
|
||||
void parseColumnsListFromString(const std::string & structure, Block & sample_block, const Context & context);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user