Fix ExecuteScalarSubqueriesMatcher visiting join elements

This commit is contained in:
Raúl Marín 2024-11-04 20:02:57 +01:00
parent b618fe03bf
commit 157e1695d5

View File

@ -63,7 +63,7 @@ bool ExecuteScalarSubqueriesMatcher::needChildVisit(ASTPtr & node, const ASTPtr
if (node->as<ASTSelectQuery>())
{
/// Do not go to FROM, JOIN, UNION.
if (child->as<ASTTableExpression>() || child->as<ASTSelectQuery>())
if (child->as<ASTTableExpression>() || child->as<ASTSelectQuery>() || child->as<ASTTablesInSelectQuery>())
return false;
}