remove more code

This commit is contained in:
Artem Zuikov 2020-04-15 13:07:16 +03:00
parent 24f715ad87
commit 3d8562452d

View File

@ -159,18 +159,8 @@ void RequiredSourceColumnsMatcher::visit(const ASTFunction & node, const ASTPtr
void RequiredSourceColumnsMatcher::visit(const ASTTablesInSelectQueryElement & node, const ASTPtr &, Data & data)
{
ASTTableExpression * expr = nullptr;
ASTTableJoin * join = nullptr;
for (auto & child : node.children)
{
if (auto * e = child->as<ASTTableExpression>())
expr = e;
if (auto * j = child->as<ASTTableJoin>())
join = j;
}
if (join)
if (child->as<ASTTableJoin>())
data.has_table_join = true;
}