mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
Fix style
This commit is contained in:
parent
210af0d119
commit
e4b2ed6d6f
@ -23,9 +23,10 @@ namespace {
|
||||
|
||||
struct HasNonDeterministicFunctionsMatcher
|
||||
{
|
||||
struct Data {
|
||||
struct Data
|
||||
{
|
||||
ContextPtr context;
|
||||
bool has_non_deterministic_functions;
|
||||
bool has_non_deterministic_functions = false;
|
||||
};
|
||||
|
||||
static bool needChildVisit(const ASTPtr &, const ASTPtr &) { return true; }
|
||||
@ -50,9 +51,9 @@ using HasNonDeterministicFunctionsVisitor = InDepthNodeVisitor<HasNonDeterminist
|
||||
|
||||
bool astContainsNonDeterministicFunctions(ASTPtr ast, ContextPtr context)
|
||||
{
|
||||
HasNonDeterministicFunctionsMatcher::Data data{context, false};
|
||||
HasNonDeterministicFunctionsVisitor(data).visit(ast);
|
||||
return data.has_non_deterministic_functions;
|
||||
HasNonDeterministicFunctionsMatcher::Data finder_data{context};
|
||||
HasNonDeterministicFunctionsVisitor(finder_data).visit(ast);
|
||||
return finder_data.has_non_deterministic_functions;
|
||||
}
|
||||
|
||||
namespace
|
||||
|
Loading…
Reference in New Issue
Block a user