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,19 +159,9 @@ 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)
data.has_table_join = true;
if (child->as<ASTTableJoin>())
data.has_table_join = true;
}
/// ASTIdentifiers here are tables. Do not visit them as generic ones.