mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
26 lines
586 B
C++
26 lines
586 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST.h>
|
|
#include <Parsers/ASTFunction.h>
|
|
#include <Parsers/ASTSelectQuery.h>
|
|
#include <Parsers/ASTSelectWithUnionQuery.h>
|
|
#include <Interpreters/InDepthNodeVisitor.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct ExtractFunctionData
|
|
{
|
|
using TypeToVisit = ASTFunction;
|
|
|
|
std::vector<ASTFunction *> functions;
|
|
std::vector<ASTFunction *> aggregate_functions;
|
|
|
|
void visit(ASTFunction & identifier, ASTPtr &);
|
|
};
|
|
|
|
using ExtractFunctionMatcher = OneTypeMatcher<ExtractFunctionData>;
|
|
using ExtractFunctionVisitor = InDepthNodeVisitor<ExtractFunctionMatcher, true>;
|
|
|
|
}
|