Using lexer (incomplete) [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-07-12 05:41:41 +03:00 committed by alexey-milovidov
parent 1bab7fc344
commit 83c8043193
4 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ bool ValuesRowInputStream::read(Block & block)
* But as an exception, it also supports processing arbitrary expressions instead of values.
* This is very inefficient. But if there are no expressions, then there is no overhead.
*/
ParserExpressionWithOptionalAlias parser(false);
ParserExpression parser;
assertChar('(', istr);

View File

@ -217,7 +217,7 @@ bool ParserAlterQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
else if (s_reshard.ignore(pos, expected))
{
ParserList weighted_zookeeper_paths_p(std::make_unique<ParserWeightedZooKeeperPath>(), std::make_unique<ParserToken>(TokenType::Comma), false);
ParserExpression parser_sharding_key_expr(false);
ParserExpression parser_sharding_key_expr;
ParserStringLiteral parser_coordinator;
if (s_copy.ignore(pos, expected))

View File

@ -72,7 +72,7 @@ ColumnsDescription<true> ColumnsDescription<true>::parse(const String & str)
readText(count, buf);
assertString(" columns:\n", buf);
ParserExpressionWithOptionalAlias expr_parser(false);
ParserExpression expr_parser;
const DataTypeFactory & data_type_factory = DataTypeFactory::instance();
ColumnsDescription<true> result{};

View File

@ -30,7 +30,7 @@ ReshardingJob::ReshardingJob(const std::string & serialized_job)
IParser::Pos max_parsed_pos = pos;
const char * end = pos + expr.size();
ParserExpressionWithOptionalAlias parser(false);
ParserExpression parser;
Expected expected = "";
if (!parser.parse(pos, end, sharding_key_expr, max_parsed_pos, expected))
throw Exception{"ReshardingJob: cannot parse sharding expression.", ErrorCodes::LOGICAL_ERROR};