mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +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>;
|
|
|
|
}
|