mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
33 lines
638 B
C++
33 lines
638 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST.h>
|
|
#include <Interpreters/Aliases.h>
|
|
#include <Interpreters/InDepthNodeVisitor.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ASTFunction;
|
|
struct ASTTableExpression;
|
|
|
|
class MarkTableIdentifiersMatcher
|
|
{
|
|
public:
|
|
using Visitor = InDepthNodeVisitor<MarkTableIdentifiersMatcher, true>;
|
|
|
|
struct Data
|
|
{
|
|
const Aliases & aliases;
|
|
};
|
|
|
|
static bool needChildVisit(ASTPtr & node, const ASTPtr & child);
|
|
static void visit(ASTPtr & ast, Data & data);
|
|
|
|
private:
|
|
static void visit(ASTFunction & func, const Data & data);
|
|
};
|
|
|
|
using MarkTableIdentifiersVisitor = MarkTableIdentifiersMatcher::Visitor;
|
|
|
|
}
|