From bc0e4facc81240b23b379f2df74ce48fcdb685d4 Mon Sep 17 00:00:00 2001 From: Nikita Vasilev Date: Sun, 20 Jan 2019 12:33:29 +0300 Subject: [PATCH] fix comments --- dbms/src/Parsers/ParserCreateQuery.cpp | 2 +- dbms/src/Parsers/ParserCreateQuery.h | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dbms/src/Parsers/ParserCreateQuery.cpp b/dbms/src/Parsers/ParserCreateQuery.cpp index 8867d1714e4..271c65395f8 100644 --- a/dbms/src/Parsers/ParserCreateQuery.cpp +++ b/dbms/src/Parsers/ParserCreateQuery.cpp @@ -171,7 +171,7 @@ bool ParserIndexDeclarationList::parseImpl(Pos & pos, ASTPtr & node, Expected & } -bool ParserColumnsOrIndicesDeclaration::parseImpl(Pos & pos, ASTPtr & node, Expected & expected) +bool ParserColumnsOrIndicesDeclarationList::parseImpl(Pos & pos, ASTPtr & node, Expected & expected) { ASTPtr list; if (!ParserList(std::make_unique(), std::make_unique(TokenType::Comma), false) diff --git a/dbms/src/Parsers/ParserCreateQuery.h b/dbms/src/Parsers/ParserCreateQuery.h index e77b80a3b98..a471c5bca93 100644 --- a/dbms/src/Parsers/ParserCreateQuery.h +++ b/dbms/src/Parsers/ParserCreateQuery.h @@ -248,17 +248,16 @@ protected: }; -class ParserColumnsOrIndicesDeclaration : public IParserBase +class ParserColumnsOrIndicesDeclarationList : public IParserBase { protected: - const char * getName() const override { return "columns or indices declaration"; } + const char * getName() const override { return "columns or indices declaration list"; } bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override; }; /** - * ENGINE = name [PARTITION BY expr] [ORDER BY expr] [PRIMARY KEY expr] [SAMPLE BY expr] - * [INDEXES name BY expr TYPE type(args) GRANULARITY value, ...] [SETTINGS name = value, ...] + * ENGINE = name [PARTITION BY expr] [ORDER BY expr] [PRIMARY KEY expr] [SAMPLE BY expr] [SETTINGS name = value, ...] */ class ParserStorage : public IParserBase { @@ -274,6 +273,8 @@ protected: * name1 type1, * name2 type2, * ... + * INDEX name1 expr TYPE type1(args) GRANULARITY value, + * ... * ) ENGINE = engine * * Or: