mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
29 lines
495 B
C++
29 lines
495 B
C++
|
#pragma once
|
||
|
|
||
|
#include <map>
|
||
|
|
||
|
#include <Parsers/IAST.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
class ASTFunction;
|
||
|
struct ASTTableExpression;
|
||
|
|
||
|
class ApplyWithSubqueryVisitor
|
||
|
{
|
||
|
public:
|
||
|
struct Data
|
||
|
{
|
||
|
std::map<String, ASTPtr> subqueries;
|
||
|
};
|
||
|
|
||
|
static void visit(ASTPtr & ast) { visit(ast, {}); }
|
||
|
|
||
|
private:
|
||
|
static void visit(ASTPtr & ast, const Data & data);
|
||
|
static void visit(ASTTableExpression & table, const Data & data);
|
||
|
static void visit(ASTFunction & func, const Data & data);
|
||
|
};
|
||
|
|
||
|
}
|