mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Merge pull request #66505 from ClickHouse/fix-double-whitespace-in-explain-ast
Fix double whitespace in EXPLAIN AST CREATE
This commit is contained in:
commit
4ac48f08c3
@ -265,6 +265,16 @@ ASTPtr ASTCreateQuery::clone() const
|
||||
return res;
|
||||
}
|
||||
|
||||
String ASTCreateQuery::getID(char delim) const
|
||||
{
|
||||
String res = attach ? "AttachQuery" : "CreateQuery";
|
||||
String database = getDatabase();
|
||||
if (!database.empty())
|
||||
res += (delim + getDatabase());
|
||||
res += (delim + getTable());
|
||||
return res;
|
||||
}
|
||||
|
||||
void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
|
||||
{
|
||||
frame.need_parens = false;
|
||||
|
@ -136,7 +136,7 @@ public:
|
||||
bool create_or_replace{false};
|
||||
|
||||
/** Get the text that identifies this element. */
|
||||
String getID(char delim) const override { return (attach ? "AttachQuery" : "CreateQuery") + (delim + getDatabase()) + delim + getTable(); }
|
||||
String getID(char delim) const override;
|
||||
|
||||
ASTPtr clone() const override;
|
||||
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#include <Processors/QueryPlan/QueryPlan.h>
|
||||
#include <Processors/QueryPlan/ReadFromPreparedSource.h>
|
||||
#include <Processors/Transforms/FilterTransform.h>
|
||||
#include <Parsers/ASTFunction.h>
|
||||
#include <Parsers/ASTIdentifier.h>
|
||||
#include <Parsers/ASTTablesInSelectQuery.h>
|
||||
|
Loading…
Reference in New Issue
Block a user