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