mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Fix tests
This commit is contained in:
parent
2e2d804b90
commit
36c3a18035
@ -697,12 +697,16 @@ public:
|
||||
return false;
|
||||
|
||||
if (auto * ast_with_alias = dynamic_cast<ASTWithAlias *>(operands.back().get()))
|
||||
{
|
||||
if (ast_with_alias->alias.empty())
|
||||
{
|
||||
tryGetIdentifierNameInto(node, ast_with_alias->alias);
|
||||
else
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool is_table_function = false;
|
||||
|
||||
@ -775,6 +779,7 @@ public:
|
||||
{
|
||||
/// We can exit the main cycle outside the parse() function,
|
||||
/// so we need to merge the element here
|
||||
if (!isCurrentElementEmpty() || !elements.empty())
|
||||
if (!mergeElement())
|
||||
return false;
|
||||
|
||||
@ -2462,13 +2467,13 @@ Action ParserExpressionImpl::tryParseOperator(Layers & layers, IParser::Pos & po
|
||||
|
||||
if (cur_op == operators_table.end())
|
||||
{
|
||||
auto old_pos = pos;
|
||||
if (layers.back()->allow_alias && ParserAlias(layers.back()->allow_alias_without_as_keyword).parse(pos, tmp, expected))
|
||||
{
|
||||
if (!layers.back()->insertAlias(tmp))
|
||||
return Action::NONE;
|
||||
|
||||
if (layers.back()->insertAlias(tmp))
|
||||
return Action::OPERATOR;
|
||||
}
|
||||
pos = old_pos;
|
||||
return Action::NONE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user