Fix clang-tidy

This commit is contained in:
Alexey Milovidov 2024-07-17 01:59:22 +02:00
parent 64f947c3d7
commit a6ee9a98f5

View File

@ -69,9 +69,6 @@ ASTPtr getASTForExternalDatabaseFromQueryTree(const QueryTreeNodePtr & query_tre
bool allow_where = true; bool allow_where = true;
if (const auto * join_node = join_tree->as<JoinNode>()) if (const auto * join_node = join_tree->as<JoinNode>())
{ {
if (join_node->getStrictness() != JoinStrictness::All)
allow_where = false;
if (join_node->getKind() == JoinKind::Left) if (join_node->getKind() == JoinKind::Left)
allow_where = join_node->getLeftTableExpression()->isEqual(*table_expression); allow_where = join_node->getLeftTableExpression()->isEqual(*table_expression);
else if (join_node->getKind() == JoinKind::Right) else if (join_node->getKind() == JoinKind::Right)