mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
style of constructor init list
This commit is contained in:
parent
dd0b5a1b82
commit
9bfd80b412
@ -190,19 +190,25 @@ void InterpreterSelectQuery::initQueryAnalyzer()
|
|||||||
|
|
||||||
InterpreterSelectQuery::InterpreterSelectQuery(ASTPtr query_ptr_, const Context & context_, QueryProcessingStage::Enum to_stage_,
|
InterpreterSelectQuery::InterpreterSelectQuery(ASTPtr query_ptr_, const Context & context_, QueryProcessingStage::Enum to_stage_,
|
||||||
size_t subquery_depth_, BlockInputStreamPtr input_)
|
size_t subquery_depth_, BlockInputStreamPtr input_)
|
||||||
: query_ptr(query_ptr_), query(typeid_cast<ASTSelectQuery &>(*query_ptr)),
|
: query_ptr(query_ptr_)
|
||||||
context(context_), to_stage(to_stage_), subquery_depth(subquery_depth_),
|
, query(typeid_cast<ASTSelectQuery &>(*query_ptr))
|
||||||
is_first_select_inside_union_all(query.isUnionAllHead()),
|
, context(context_)
|
||||||
log(&Logger::get("InterpreterSelectQuery"))
|
, to_stage(to_stage_)
|
||||||
|
, subquery_depth(subquery_depth_)
|
||||||
|
, is_first_select_inside_union_all(query.isUnionAllHead())
|
||||||
|
, log(&Logger::get("InterpreterSelectQuery"))
|
||||||
{
|
{
|
||||||
init(input_);
|
init(input_);
|
||||||
}
|
}
|
||||||
|
|
||||||
InterpreterSelectQuery::InterpreterSelectQuery(OnlyAnalyzeTag, ASTPtr query_ptr_, const Context & context_)
|
InterpreterSelectQuery::InterpreterSelectQuery(OnlyAnalyzeTag, ASTPtr query_ptr_, const Context & context_)
|
||||||
: query_ptr(query_ptr_), query(typeid_cast<ASTSelectQuery &>(*query_ptr)),
|
: query_ptr(query_ptr_)
|
||||||
context(context_), to_stage(QueryProcessingStage::Complete), subquery_depth(0),
|
, query(typeid_cast<ASTSelectQuery &>(*query_ptr))
|
||||||
is_first_select_inside_union_all(false), only_analyze(true),
|
, context(context_)
|
||||||
log(&Logger::get("InterpreterSelectQuery"))
|
, to_stage(QueryProcessingStage::Complete)
|
||||||
|
, subquery_depth(0)
|
||||||
|
, is_first_select_inside_union_all(false), only_analyze(true)
|
||||||
|
, log(&Logger::get("InterpreterSelectQuery"))
|
||||||
{
|
{
|
||||||
init({});
|
init({});
|
||||||
}
|
}
|
||||||
@ -217,10 +223,14 @@ InterpreterSelectQuery::InterpreterSelectQuery(ASTPtr query_ptr_, const Context
|
|||||||
InterpreterSelectQuery::InterpreterSelectQuery(ASTPtr query_ptr_, const Context & context_,
|
InterpreterSelectQuery::InterpreterSelectQuery(ASTPtr query_ptr_, const Context & context_,
|
||||||
const Names & required_column_names_,
|
const Names & required_column_names_,
|
||||||
const NamesAndTypesList & table_column_names_, QueryProcessingStage::Enum to_stage_, size_t subquery_depth_, BlockInputStreamPtr input_)
|
const NamesAndTypesList & table_column_names_, QueryProcessingStage::Enum to_stage_, size_t subquery_depth_, BlockInputStreamPtr input_)
|
||||||
: query_ptr(query_ptr_), query(typeid_cast<ASTSelectQuery &>(*query_ptr)),
|
: query_ptr(query_ptr_)
|
||||||
context(context_), to_stage(to_stage_), subquery_depth(subquery_depth_), table_column_names(table_column_names_),
|
, query(typeid_cast<ASTSelectQuery &>(*query_ptr))
|
||||||
is_first_select_inside_union_all(query.isUnionAllHead()),
|
, context(context_)
|
||||||
log(&Logger::get("InterpreterSelectQuery"))
|
, to_stage(to_stage_)
|
||||||
|
, subquery_depth(subquery_depth_)
|
||||||
|
, table_column_names(table_column_names_)
|
||||||
|
, is_first_select_inside_union_all(query.isUnionAllHead())
|
||||||
|
, log(&Logger::get("InterpreterSelectQuery"))
|
||||||
{
|
{
|
||||||
init(input_, required_column_names_);
|
init(input_, required_column_names_);
|
||||||
}
|
}
|
||||||
@ -305,7 +315,7 @@ void InterpreterSelectQuery::getDatabaseAndTableNames(String & database_name, St
|
|||||||
DataTypes InterpreterSelectQuery::getReturnTypes()
|
DataTypes InterpreterSelectQuery::getReturnTypes()
|
||||||
{
|
{
|
||||||
DataTypes res;
|
DataTypes res;
|
||||||
NamesAndTypesList columns = query_analyzer->getSelectSampleBlock().getColumnsList();
|
const NamesAndTypesList & columns = query_analyzer->getSelectSampleBlock().getColumnsList();
|
||||||
for (auto & column : columns)
|
for (auto & column : columns)
|
||||||
res.push_back(column.type);
|
res.push_back(column.type);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user