Fix style error

This commit is contained in:
jianmei zhang 2022-06-18 18:18:31 +08:00
parent 8d49aa4697
commit d75af09f74
4 changed files with 4 additions and 7 deletions

View File

@ -8,8 +8,7 @@
namespace DB
{
/**
* CREATE INDEX [IF NOT EXISTS] name ON [db].name (expression) TYPE type GRANULARITY value
/** CREATE INDEX [IF NOT EXISTS] name ON [db].name (expression) TYPE type GRANULARITY value
*/
class ASTCreateIndexQuery : public ASTQueryWithTableAndOutput, public ASTQueryWithOnCluster

View File

@ -24,7 +24,7 @@ ASTPtr ASTDropIndexQuery::clone() const
}
void ASTDropIndexQuery::formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
{
{
frame.need_parens = false;
std::string indent_str = settings.one_line ? "" : std::string(4u * frame.indent, ' ');

View File

@ -8,12 +8,10 @@
#include <Parsers/IParserBase.h>
namespace DB
{
/**
* DROP INDEX [IF EXISTS] name on [db].name
/** DROP INDEX [IF EXISTS] name on [db].name
*/
class ASTDropIndexQuery : public ASTQueryWithTableAndOutput, public ASTQueryWithOnCluster

View File

@ -50,7 +50,7 @@ bool ParserDropIndexQuery::parseImpl(IParser::Pos & pos, ASTPtr & node, Expected
query->cluster = std::move(cluster_str);
}
if(query->index_name)
if (query->index_name)
query->children.push_back(query->index_name);
query->if_exists = if_exists;