mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
remove more code
This commit is contained in:
parent
24f715ad87
commit
3d8562452d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user