mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fixed incompatibility [#METR-22226].
This commit is contained in:
parent
040a957073
commit
1d2a5086d2
@ -1641,7 +1641,8 @@ void ExpressionAnalyzer::getArrayJoinedColumnsImpl(ASTPtr ast)
|
||||
else
|
||||
{
|
||||
for (auto & child : ast->children)
|
||||
if (!typeid_cast<const ASTSubquery *>(child.get()))
|
||||
if (!typeid_cast<const ASTSubquery *>(child.get())
|
||||
&& !typeid_cast<const ASTSelectQuery *>(child.get()))
|
||||
getArrayJoinedColumnsImpl(child);
|
||||
}
|
||||
}
|
||||
@ -1976,7 +1977,8 @@ void ExpressionAnalyzer::getAggregates(const ASTPtr & ast, ExpressionActionsPtr
|
||||
else
|
||||
{
|
||||
for (const auto & child : ast->children)
|
||||
if (!typeid_cast<const ASTSubquery *>(child.get()))
|
||||
if (!typeid_cast<const ASTSubquery *>(child.get())
|
||||
&& !typeid_cast<const ASTSelectQuery *>(child.get()))
|
||||
getAggregates(child, actions);
|
||||
}
|
||||
}
|
||||
@ -1991,7 +1993,8 @@ void ExpressionAnalyzer::assertNoAggregates(const ASTPtr & ast, const char * des
|
||||
+ " is found " + String(description) + " in query", ErrorCodes::ILLEGAL_AGGREGATION);
|
||||
|
||||
for (const auto & child : ast->children)
|
||||
if (!typeid_cast<const ASTSubquery *>(child.get()))
|
||||
if (!typeid_cast<const ASTSubquery *>(child.get())
|
||||
&& !typeid_cast<const ASTSelectQuery *>(child.get()))
|
||||
assertNoAggregates(child, description);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user