diff --git a/dbms/src/Parsers/ASTQueryWithOnCluster.cpp b/dbms/src/Parsers/ASTQueryWithOnCluster.cpp index ad9bbbf9d604ad745e158dea33196b1b2ee333b4..84974e59a8d1a68ebee14e68f86208961184820d 100644 --- a/dbms/src/Parsers/ASTQueryWithOnCluster.cpp +++ b/dbms/src/Parsers/ASTQueryWithOnCluster.cpp @@ -18,7 +18,7 @@ std::string ASTQueryWithOnCluster::getRewrittenQueryWithoutOnCluster(const std:: bool ASTQueryWithOnCluster::parse(Pos & pos, Pos end, std::string & cluster_str, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ws.ignore(pos, end); diff --git a/dbms/src/Parsers/CommonParsers.cpp b/dbms/src/Parsers/CommonParsers.cpp index a7b206fbc9c6b88e68f647a492fff900f9463de3..75383d1ee16d4b194edbd77ca984be0e834c0999 100644 --- a/dbms/src/Parsers/CommonParsers.cpp +++ b/dbms/src/Parsers/CommonParsers.cpp @@ -37,19 +37,19 @@ bool ParserString::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed } -ParserWhiteSpace::ParserWhiteSpace(bool allow_newlines_) +ParserWhitespace::ParserWhitespace(bool allow_newlines_) : allow_newlines(allow_newlines_) { } -const char * ParserWhiteSpace::getName() const +const char * ParserWhitespace::getName() const { return "white space"; } -bool ParserWhiteSpace::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) +bool ParserWhitespace::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { Pos begin = pos; while (pos < end && (*pos == ' ' || *pos == '\t' || (allow_newlines && *pos == '\n') || *pos == '\r' || *pos == '\f')) @@ -128,21 +128,21 @@ bool ParserComment::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parse } -ParserWhiteSpaceOrComments::ParserWhiteSpaceOrComments(bool allow_newlines_outside_comments_) +ParserWhitespaceOrComments::ParserWhitespaceOrComments(bool allow_newlines_outside_comments_) : allow_newlines_outside_comments(allow_newlines_outside_comments_) { } -const char * ParserWhiteSpaceOrComments::getName() const +const char * ParserWhitespaceOrComments::getName() const { return "white space or comments"; } -bool ParserWhiteSpaceOrComments::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) +bool ParserWhitespaceOrComments::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpace p1(allow_newlines_outside_comments); + ParserWhitespace p1(allow_newlines_outside_comments); ParserComment p2; bool res = false; diff --git a/dbms/src/Parsers/CommonParsers.h b/dbms/src/Parsers/CommonParsers.h index 7f4d6e9d6a15bfcafef90738e55be8c8fc43a38e..38d57f8dc08f8276ec254343f497099aee758736 100644 --- a/dbms/src/Parsers/CommonParsers.h +++ b/dbms/src/Parsers/CommonParsers.h @@ -29,10 +29,10 @@ protected: /** whitespace characters */ -class ParserWhiteSpace : public IParserBase +class ParserWhitespace : public IParserBase { public: - ParserWhiteSpace(bool allow_newlines_ = true); + ParserWhitespace(bool allow_newlines_ = true); protected: bool allow_newlines; @@ -72,10 +72,10 @@ protected: }; -class ParserWhiteSpaceOrComments : public IParserBase +class ParserWhitespaceOrComments : public IParserBase { public: - ParserWhiteSpaceOrComments(bool allow_newlines_outside_comments_ = true); + ParserWhitespaceOrComments(bool allow_newlines_outside_comments_ = true); protected: bool allow_newlines_outside_comments; diff --git a/dbms/src/Parsers/ExpressionElementParsers.cpp b/dbms/src/Parsers/ExpressionElementParsers.cpp index 9159599ee8f56e663713d0353eeaa585ccde8f84..8038a7cf7f4361853ce1fe7c94f2d76a0c1de219 100644 --- a/dbms/src/Parsers/ExpressionElementParsers.cpp +++ b/dbms/src/Parsers/ExpressionElementParsers.cpp @@ -40,7 +40,7 @@ bool ParserArray::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_ ASTPtr contents_node; ParserString open("["), close("]"); ParserExpressionList contents(false); - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; if (!open.ignore(pos, end, max_parsed_pos, expected)) return false; @@ -69,7 +69,7 @@ bool ParserParenthesisExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, P ASTPtr contents_node; ParserString open("("), close(")"); ParserExpressionList contents(false); - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; if (!open.ignore(pos, end, max_parsed_pos, expected)) return false; @@ -114,7 +114,7 @@ bool ParserSubquery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_pars ASTPtr select_node; ParserString open("("), close(")"); ParserSelectQuery select; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; if (!open.ignore(pos, end, max_parsed_pos, expected)) return false; @@ -206,7 +206,7 @@ bool ParserFunction::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_pars ParserString open("("), close(")"); ParserString distinct("DISTINCT", true, true); ParserExpressionList contents(false); - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; bool has_distinct_modifier = false; @@ -330,7 +330,7 @@ bool ParserCastExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & ma /// Parse as CAST(expression AS type) ParserString open("("), close(")"), comma(","); ParserExpressionInCastExpression expression_and_type(false); - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ASTPtr expr_list_args; @@ -553,7 +553,7 @@ bool ParserArrayOfLiterals::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & m return false; } - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserLiteral literal_p; ++pos; @@ -649,7 +649,7 @@ const char * ParserAliasBase::restricted_keywords[] = template bool ParserAliasImpl::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_as("AS", true, true); ParserIdentifier id_p; @@ -702,12 +702,12 @@ bool ParserQualifiedAsterisk::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & if (!ParserCompoundIdentifier().parse(pos, end, node, max_parsed_pos, expected)) return false; - ParserWhiteSpaceOrComments().ignore(pos, end); + ParserWhitespaceOrComments().ignore(pos, end); if (!ParserString(".").ignore(pos, end, max_parsed_pos, expected)) return false; - ParserWhiteSpaceOrComments().ignore(pos, end); + ParserWhitespaceOrComments().ignore(pos, end); if (!ParserString("*").ignore(pos, end, max_parsed_pos, expected)) return false; @@ -767,7 +767,7 @@ bool ParserExpressionElement::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & template bool ParserWithOptionalAliasImpl::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; if (!elem_parser->parse(pos, end, node, max_parsed_pos, expected)) return false; @@ -824,7 +824,7 @@ bool ParserOrderByElement::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & ma { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserExpressionWithOptionalAlias elem_p(false); ParserString ascending("ASCENDING", true, true); ParserString descending("DESCENDING", true, true); @@ -891,7 +891,7 @@ bool ParserWeightedZooKeeperPath::parseImpl(Pos & pos, Pos end, ASTPtr & node, P ParserString s_weight("WEIGHT", true, true); ParserStringLiteral path_p; ParserUnsignedInteger weight_p; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; auto weighted_zookeeper_path = std::make_shared(); node = weighted_zookeeper_path; diff --git a/dbms/src/Parsers/ExpressionListParsers.cpp b/dbms/src/Parsers/ExpressionListParsers.cpp index a595802e00c352a181ef48fbcc9ee9a148db4a11..b9cbe78761d99b217d7ed918f20035fa6dac31ed 100644 --- a/dbms/src/Parsers/ExpressionListParsers.cpp +++ b/dbms/src/Parsers/ExpressionListParsers.cpp @@ -76,7 +76,7 @@ const char * ParserTupleElementExpression::operators[] = bool ParserList::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { bool first = true; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; auto list = std::make_shared(); node = list; @@ -122,7 +122,7 @@ bool ParserList::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_p bool ParserLeftAssociativeBinaryOperatorList::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { bool first = true; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; Pos begin = pos; while (1) @@ -198,7 +198,7 @@ bool ParserLeftAssociativeBinaryOperatorList::parseImpl(Pos & pos, Pos end, ASTP bool ParserVariableArityOperatorList::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; Pos begin = pos; ASTPtr arguments; @@ -239,7 +239,7 @@ bool ParserBetweenExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & /// For the expression (subject BETWEEN left AND right) /// create an AST the same as for (subject> = left AND subject <= right). - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_between("BETWEEN", true, true); ParserString s_and("AND", true, true); @@ -320,7 +320,7 @@ bool ParserBetweenExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & bool ParserTernaryOperatorExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString symbol1("?"); ParserString symbol2(":"); @@ -381,7 +381,7 @@ bool ParserTernaryOperatorExpression::parseImpl(Pos & pos, Pos end, ASTPtr & nod bool ParserLambdaExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString arrow("->"); ParserString open("("); ParserString close(")"); @@ -448,7 +448,7 @@ bool ParserLambdaExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & bool ParserPrefixUnaryOperatorExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; /// try to find any of the valid operators Pos begin = pos; @@ -600,7 +600,7 @@ bool ParserOrderByExpressionList::parseImpl(Pos & pos, Pos end, ASTPtr & node, P bool ParserNullityChecking::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ASTPtr node_comp; if (!ParserComparisonExpression{}.parse(pos, end, node_comp, max_parsed_pos, expected)) diff --git a/dbms/src/Parsers/ParserAlterQuery.cpp b/dbms/src/Parsers/ParserAlterQuery.cpp index c4f90688597849b4fdc28b02758e416dd949896e..91ff081779f9157f1153e2cccc16748bd28528c7 100644 --- a/dbms/src/Parsers/ParserAlterQuery.cpp +++ b/dbms/src/Parsers/ParserAlterQuery.cpp @@ -42,7 +42,7 @@ bool ParserAlterQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_pa ParserString s_comma(","); ParserString s_doubledot(".."); - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserIdentifier table_parser; ParserCompoundIdentifier parser_name; diff --git a/dbms/src/Parsers/ParserCase.cpp b/dbms/src/Parsers/ParserCase.cpp index b86f6f22ea29bbe03f9763411c006fc4be2ccb51..26cb434f8971dda8449a89c1ef19660c73b51b12 100644 --- a/dbms/src/Parsers/ParserCase.cpp +++ b/dbms/src/Parsers/ParserCase.cpp @@ -12,7 +12,7 @@ bool ParserCase::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_p { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_case{"CASE", true, true}; ParserString s_when{"WHEN", true, true}; ParserString s_then{"THEN", true, true}; diff --git a/dbms/src/Parsers/ParserCheckQuery.cpp b/dbms/src/Parsers/ParserCheckQuery.cpp index e89c51d0efa99faaf368dd27fd8dd83179c1bada..a2df340ae3d6090a2044ba51304fda0efdc66b47 100644 --- a/dbms/src/Parsers/ParserCheckQuery.cpp +++ b/dbms/src/Parsers/ParserCheckQuery.cpp @@ -12,7 +12,7 @@ namespace DB bool ParserCheckQuery::parseImpl(IParser::Pos & pos, IParser::Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_check("CHECK", true, true); ParserString s_table("TABLE", true, true); ParserString s_dot("."); diff --git a/dbms/src/Parsers/ParserCreateQuery.cpp b/dbms/src/Parsers/ParserCreateQuery.cpp index dc95afa304307ed800b9016484091f1ee8c4c642..ec15c55219e2a8c1695c895b76d3cc46ea19147d 100644 --- a/dbms/src/Parsers/ParserCreateQuery.cpp +++ b/dbms/src/Parsers/ParserCreateQuery.cpp @@ -12,7 +12,7 @@ namespace DB bool ParserNestedTable::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString open("("); ParserString close(")"); ParserIdentifier name_p; @@ -115,7 +115,7 @@ bool ParserColumnDeclarationList::parseImpl(Pos & pos, Pos end, ASTPtr & node, P bool ParserEngine::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_engine("ENGINE", true, true); ParserString s_eq("="); ParserIdentifierWithOptionalParameters storage_p; @@ -145,7 +145,7 @@ bool ParserCreateQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_p { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_create("CREATE", true, true); ParserString s_temporary("TEMPORARY", true, true); ParserString s_attach("ATTACH", true, true); diff --git a/dbms/src/Parsers/ParserCreateQuery.h b/dbms/src/Parsers/ParserCreateQuery.h index 44e33a09c58c5c6dc2ac6ab15cb2cb9b89c163e1..5b561ac98d7a48087de4f8332b8dffea5620a28c 100644 --- a/dbms/src/Parsers/ParserCreateQuery.h +++ b/dbms/src/Parsers/ParserCreateQuery.h @@ -74,7 +74,7 @@ bool IParserNameTypePair::parseImpl(Pos & pos, Pos end, ASTPtr & nod { NameParser name_parser; ParserIdentifierWithOptionalParameters type_parser; - ParserWhiteSpaceOrComments ws_parser; + ParserWhitespaceOrComments ws_parser; Pos begin = pos; @@ -119,7 +119,7 @@ bool IParserColumnDeclaration::parseImpl(Pos & pos, Pos end, ASTPtr { NameParser name_parser; ParserIdentifierWithOptionalParameters type_parser; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_default{"DEFAULT", true, true}; ParserString s_materialized{"MATERIALIZED", true, true}; ParserString s_alias{"ALIAS", true, true}; diff --git a/dbms/src/Parsers/ParserDropQuery.cpp b/dbms/src/Parsers/ParserDropQuery.cpp index 2cabecb71c1c02a1511cecbb3a3389ed18467dbf..4e85aeb6e06894f03b5c432746c007832fef9d7d 100644 --- a/dbms/src/Parsers/ParserDropQuery.cpp +++ b/dbms/src/Parsers/ParserDropQuery.cpp @@ -15,7 +15,7 @@ bool ParserDropQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_par { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_drop("DROP", true, true); ParserString s_detach("DETACH", true, true); ParserString s_table("TABLE", true, true); diff --git a/dbms/src/Parsers/ParserEnumElement.cpp b/dbms/src/Parsers/ParserEnumElement.cpp index 833aac357a043a44f8f43732c969db9ab04d2e9d..ea2d229f779b025177d223ad9b366993ab18d163 100644 --- a/dbms/src/Parsers/ParserEnumElement.cpp +++ b/dbms/src/Parsers/ParserEnumElement.cpp @@ -9,7 +9,7 @@ namespace DB bool ParserEnumElement::parseImpl(IParser::Pos & pos, IParser::Pos end, ASTPtr & node, IParser::Pos & max_parsed_pos, Expected & expected) { ParserString equality_sign_parser("="); - ParserWhiteSpace ws; + ParserWhitespace ws; const auto begin = pos; ASTPtr name; diff --git a/dbms/src/Parsers/ParserInsertQuery.cpp b/dbms/src/Parsers/ParserInsertQuery.cpp index 1f8790e0848311cc3a92cf654eacdd2bf6c51e1e..00cc7a534d462a30d352d3b38ec70f8e69789ba6 100644 --- a/dbms/src/Parsers/ParserInsertQuery.cpp +++ b/dbms/src/Parsers/ParserInsertQuery.cpp @@ -25,7 +25,7 @@ bool ParserInsertQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_p { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_insert("INSERT", true, true); ParserString s_into("INTO", true, true); ParserString s_dot("."); @@ -104,7 +104,7 @@ bool ParserInsertQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_p return false; /// Data starts after the first newline, if there is one, or after all the whitespace characters, otherwise. - ParserWhiteSpaceOrComments ws_without_nl(false); + ParserWhitespaceOrComments ws_without_nl(false); ws_without_nl.ignore(pos, end); if (pos != end && *pos == ';') diff --git a/dbms/src/Parsers/ParserKillQueryQuery.cpp b/dbms/src/Parsers/ParserKillQueryQuery.cpp index 119bdd30fd3d81bc231c51d9cabbc26c246e4eaa..7f1f8e6219d0cef2c8d0a0f4d698f8b7c9c29455 100644 --- a/dbms/src/Parsers/ParserKillQueryQuery.cpp +++ b/dbms/src/Parsers/ParserKillQueryQuery.cpp @@ -21,7 +21,7 @@ bool ParserKillQueryQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & ma Pos begin = pos; auto query = std::make_shared(); - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ws.ignore(pos, end); diff --git a/dbms/src/Parsers/ParserOptimizeQuery.cpp b/dbms/src/Parsers/ParserOptimizeQuery.cpp index aa1a3f1809c118fd9b57e96a7a6873d6e1ea9328..caed2dbd6f81b69a764b580286ebad3f1925b27f 100644 --- a/dbms/src/Parsers/ParserOptimizeQuery.cpp +++ b/dbms/src/Parsers/ParserOptimizeQuery.cpp @@ -16,7 +16,7 @@ bool ParserOptimizeQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_optimize("OPTIMIZE", true, true); ParserString s_table("TABLE", true, true); ParserString s_partition("PARTITION", true, true); diff --git a/dbms/src/Parsers/ParserQueryWithOutput.h b/dbms/src/Parsers/ParserQueryWithOutput.h index fdd1c6eba6863eecea38704be6c54ce3fca3290f..ee453f76dc2371a8d56d76ab57bb78f64f51512c 100644 --- a/dbms/src/Parsers/ParserQueryWithOutput.h +++ b/dbms/src/Parsers/ParserQueryWithOutput.h @@ -16,7 +16,7 @@ protected: bool parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) override; protected: - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; }; } diff --git a/dbms/src/Parsers/ParserRenameQuery.cpp b/dbms/src/Parsers/ParserRenameQuery.cpp index 7190aea7f4a0658b869a5307aff9949221079507..64a83574149c84be3ecacaf44dc7c3631813b6bd 100644 --- a/dbms/src/Parsers/ParserRenameQuery.cpp +++ b/dbms/src/Parsers/ParserRenameQuery.cpp @@ -16,7 +16,7 @@ static bool parseDatabaseAndTable( ASTRenameQuery::Table & db_and_table, IParser::Pos & pos, IParser::Pos end, IParser::Pos & max_parsed_pos, Expected & expected) { ParserIdentifier name_p; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_dot("."); ASTPtr database; @@ -49,7 +49,7 @@ bool ParserRenameQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_p { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_rename("RENAME", true, true); ParserString s_table("TABLE", true, true); ParserString s_to("TO", true, true); diff --git a/dbms/src/Parsers/ParserSampleRatio.cpp b/dbms/src/Parsers/ParserSampleRatio.cpp index 4e197dde392c0709846c60f898b1bf334e526dcc..68ac2cf91ffb5a8bad85111d6abc33b39492b347 100644 --- a/dbms/src/Parsers/ParserSampleRatio.cpp +++ b/dbms/src/Parsers/ParserSampleRatio.cpp @@ -12,7 +12,7 @@ namespace DB static bool parseDecimal(IParser::Pos & pos, IParser::Pos end, ASTSampleRatio::Rational & res, IParser::Pos & max_parsed_pos) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ws.ignore(pos, end); UInt64 num_before = 0; @@ -90,7 +90,7 @@ bool ParserSampleRatio::parseImpl(IParser::Pos & pos, IParser::Pos end, ASTPtr & { auto begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ASTSampleRatio::Rational numerator; ASTSampleRatio::Rational denominator; diff --git a/dbms/src/Parsers/ParserSelectQuery.cpp b/dbms/src/Parsers/ParserSelectQuery.cpp index 55311d3ed4e60cb9813e1723d115a33aa4e6bdfe..5d653708135665035ced854aa4859106665479ef 100644 --- a/dbms/src/Parsers/ParserSelectQuery.cpp +++ b/dbms/src/Parsers/ParserSelectQuery.cpp @@ -28,7 +28,7 @@ bool ParserSelectQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_p auto select_query = std::make_shared(); node = select_query; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_select("SELECT", true, true); ParserString s_distinct("DISTINCT", true, true); ParserString s_from("FROM", true, true); diff --git a/dbms/src/Parsers/ParserSetQuery.cpp b/dbms/src/Parsers/ParserSetQuery.cpp index cdc5876658ee4af5ea040f175d8d111eef4cd499..46ad1b6f586458addfd6c25ef3d1cbe83b49638c 100644 --- a/dbms/src/Parsers/ParserSetQuery.cpp +++ b/dbms/src/Parsers/ParserSetQuery.cpp @@ -17,7 +17,7 @@ static bool parseNameValuePair(ASTSetQuery::Change & change, IParser::Pos & pos, { ParserIdentifier name_p; ParserLiteral value_p; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_eq("="); ASTPtr name; @@ -51,7 +51,7 @@ bool ParserSetQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_pars { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_comma(","); bool global = false; diff --git a/dbms/src/Parsers/ParserShowProcesslistQuery.h b/dbms/src/Parsers/ParserShowProcesslistQuery.h index e2f82a7b77e52301f124e1863b77922a0d6cb3a0..9679183d991125dc68c973e6d8de32ca33ec890a 100644 --- a/dbms/src/Parsers/ParserShowProcesslistQuery.h +++ b/dbms/src/Parsers/ParserShowProcesslistQuery.h @@ -21,7 +21,7 @@ protected: { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_show("SHOW", true, true); ParserString s_processlist("PROCESSLIST", true, true); diff --git a/dbms/src/Parsers/ParserShowTablesQuery.cpp b/dbms/src/Parsers/ParserShowTablesQuery.cpp index bcb42067aaba2169f67d0e2c403a0f9d83d0818b..411cae97ca8164b47b93f49e466978cf944af039 100644 --- a/dbms/src/Parsers/ParserShowTablesQuery.cpp +++ b/dbms/src/Parsers/ParserShowTablesQuery.cpp @@ -17,7 +17,7 @@ bool ParserShowTablesQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & m { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_show("SHOW", true, true); ParserString s_tables("TABLES", true, true); ParserString s_databases("DATABASES", true, true); diff --git a/dbms/src/Parsers/ParserTablePropertiesQuery.cpp b/dbms/src/Parsers/ParserTablePropertiesQuery.cpp index 38ec7b733289dfbe5854d945fe24f53ff904a45a..a6e9b66b1c07f8eab6ab86d704478c2089dc5d3d 100644 --- a/dbms/src/Parsers/ParserTablePropertiesQuery.cpp +++ b/dbms/src/Parsers/ParserTablePropertiesQuery.cpp @@ -15,7 +15,7 @@ bool ParserTablePropertiesQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Po { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_exists("EXISTS", true, true); ParserString s_describe("DESCRIBE", true, true); ParserString s_desc("DESC", true, true); diff --git a/dbms/src/Parsers/ParserTablesInSelectQuery.cpp b/dbms/src/Parsers/ParserTablesInSelectQuery.cpp index e826f0e94ebe7b1a6ac383b8e08904cc09c37938..8cbbdb0c17db17c0ec988e24f87a0a8c86ac9015 100644 --- a/dbms/src/Parsers/ParserTablesInSelectQuery.cpp +++ b/dbms/src/Parsers/ParserTablesInSelectQuery.cpp @@ -20,7 +20,7 @@ namespace ErrorCodes bool ParserTableExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; auto res = std::make_shared(); ws.ignore(pos, end); @@ -92,7 +92,7 @@ bool ParserTableExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & m bool ParserArrayJoin::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; auto res = std::make_shared(); ws.ignore(pos, end); @@ -147,7 +147,7 @@ bool ParserArrayJoin::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_par bool ParserTablesInSelectQueryElement::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected) { - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; auto res = std::make_shared(); ws.ignore(pos, end); diff --git a/dbms/src/Parsers/ParserUseQuery.cpp b/dbms/src/Parsers/ParserUseQuery.cpp index 980d4ca0f51635f2e3878305ebbb90cc7300e045..9d85bb3ced64220417aaddbbd475c26403da7b41 100644 --- a/dbms/src/Parsers/ParserUseQuery.cpp +++ b/dbms/src/Parsers/ParserUseQuery.cpp @@ -13,7 +13,7 @@ bool ParserUseQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_pars { Pos begin = pos; - ParserWhiteSpaceOrComments ws; + ParserWhitespaceOrComments ws; ParserString s_use("USE", true, true); ParserIdentifier name_p;