2019-10-23 13:59:03 +00:00
|
|
|
#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:
|
2021-07-02 11:20:41 +00:00
|
|
|
static void visit(ASTFunction & func, const Data & data);
|
2019-10-23 13:59:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
using MarkTableIdentifiersVisitor = MarkTableIdentifiersMatcher::Visitor;
|
|
|
|
|
|
|
|
}
|