mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #34610 from Algunenano/ASTCreateQuery_unused
ASTCreateQuery: Remove usused `tables` member
This commit is contained in:
commit
fd4c8f2363
@ -198,8 +198,6 @@ ASTPtr ASTCreateQuery::clone() const
|
||||
res->set(res->storage, storage->clone());
|
||||
if (select)
|
||||
res->set(res->select, select->clone());
|
||||
if (tables)
|
||||
res->set(res->tables, tables->clone());
|
||||
if (table_overrides)
|
||||
res->set(res->table_overrides, table_overrides->clone());
|
||||
|
||||
@ -434,12 +432,6 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
|
||||
settings.ostr << (comment ? ")" : "");
|
||||
}
|
||||
|
||||
if (tables)
|
||||
{
|
||||
settings.ostr << (settings.hilite ? hilite_keyword : "") << " WITH " << (settings.hilite ? hilite_none : "");
|
||||
tables->formatImpl(settings, state, frame);
|
||||
}
|
||||
|
||||
if (comment)
|
||||
{
|
||||
settings.ostr << (settings.hilite ? hilite_keyword : "") << settings.nl_or_ws << "COMMENT " << (settings.hilite ? hilite_none : "");
|
||||
|
@ -73,7 +73,6 @@ public:
|
||||
bool replace_view{false}; /// CREATE OR REPLACE VIEW
|
||||
|
||||
ASTColumns * columns_list = nullptr;
|
||||
ASTExpressionList * tables = nullptr;
|
||||
|
||||
StorageID to_table_id = StorageID::createEmpty(); /// For CREATE MATERIALIZED VIEW mv TO table.
|
||||
UUID to_inner_uuid = UUIDHelpers::Nil; /// For materialized view with inner table
|
||||
|
Loading…
Reference in New Issue
Block a user