Changed name and added comments

This commit is contained in:
Dmitry Rubashkin 2019-07-31 18:43:01 +03:00
parent 1ec249755e
commit fbe7e56e93
4 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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();

View File

@ -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;

View File

@ -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);
}