提交 d480707c 编写于 作者: A Alexander Kazakov

Fixed clang build + tweaked comment

上级 45e85724
......@@ -59,9 +59,8 @@ public:
if (const auto * function = typeid_cast<const ASTFunction *>(node.get()))
{
/// Lambda functions also may be non-deterministic. But we skip them for simplicity.
/// Replication will work correctly even if non-deterministic function is used,
/// it will select any of the results and discard other.
/// Property of being deterministic for lambda expression is completely determined
/// by the contents of its definition, so we just proceed to it.
if (function->name != "lambda")
{
const auto func = FunctionFactory::instance().get(function->name, data.context);
......@@ -76,7 +75,7 @@ using FirstNonDeterministicFuncFinder = InDepthNodeVisitor<FirstNonDeterministic
std::optional<String> findFirstNonDeterministicFuncName(const MutationCommand & command, const Context & context)
{
FirstNonDeterministicFuncMatcher::Data finder_data{context};
FirstNonDeterministicFuncMatcher::Data finder_data{context, std::nullopt};
switch (command.type)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册