mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
22 lines
544 B
C++
22 lines
544 B
C++
|
#pragma once
|
||
|
#include <Interpreters/Context_fwd.h>
|
||
|
#include <Parsers/IAST_fwd.h>
|
||
|
#include <Core/Types.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
struct MutationCommand;
|
||
|
|
||
|
struct FirstNonDeterministicFunctionResult
|
||
|
{
|
||
|
std::optional<String> nondeterministic_function_name;
|
||
|
bool subquery = false;
|
||
|
};
|
||
|
|
||
|
/// Searches for non-deterministic functions and subqueries which
|
||
|
/// may also be non-deterministic in expressions of mutation command.
|
||
|
FirstNonDeterministicFunctionResult findFirstNonDeterministicFunction(const MutationCommand & command, ContextPtr context);
|
||
|
|
||
|
}
|