Fix clang tidy after #66402

This commit is contained in:
vdimir 2024-07-16 15:03:46 +00:00
parent 9bef8a43df
commit 58ce070f8b
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -71,8 +71,7 @@ ASTPtr getASTForExternalDatabaseFromQueryTree(const QueryTreeNodePtr & query_tre
{
if (join_node->getStrictness() != JoinStrictness::All)
allow_where = false;
if (join_node->getKind() == JoinKind::Left)
else if (join_node->getKind() == JoinKind::Left)
allow_where = join_node->getLeftTableExpression()->isEqual(*table_expression);
else if (join_node->getKind() == JoinKind::Right)
allow_where = join_node->getRightTableExpression()->isEqual(*table_expression);