mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
clickhouse: fixed parsing lambda expressions [#CONV-7444].
This commit is contained in:
parent
755031efc6
commit
4a19d688dd
@ -245,7 +245,7 @@ bool ParserLambdaExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, String
|
||||
|
||||
ASTExpressionList * outer_arguments = new ASTExpressionList;
|
||||
lambda->arguments = outer_arguments;
|
||||
lambda->children.push_back(outer_arguments);
|
||||
lambda->children.push_back(lambda->arguments);
|
||||
|
||||
ASTFunction * tuple = new ASTFunction;
|
||||
outer_arguments->children.push_back(tuple);
|
||||
@ -345,7 +345,7 @@ ParserAccessExpression::ParserAccessExpression()
|
||||
|
||||
|
||||
ParserExpressionWithOptionalAlias::ParserExpressionWithOptionalAlias()
|
||||
: impl(new ParserWithOptionalAlias(new ParserTernaryOperatorExpression))
|
||||
: impl(new ParserWithOptionalAlias(new ParserLambdaExpression))
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user