mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 18:20:50 +00:00
Using lexer (incomplete) [#CLICKHOUSE-2].
This commit is contained in:
parent
1bab7fc344
commit
83c8043193
@ -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);
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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{};
|
||||
|
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user