Fix paramters for nulls

This commit is contained in:
achimbab 2021-02-02 17:50:08 +09:00
parent 03ad81ee72
commit 19dd09ea8e
2 changed files with 3 additions and 2 deletions

View File

@ -94,7 +94,8 @@ AggregateFunctionPtr createAggregateFunctionSequenceNextNode(const std::string &
void registerAggregateFunctionSequenceNextNode(AggregateFunctionFactory & factory)
{
factory.registerFunction("sequenceNextNode", { createAggregateFunctionSequenceNextNode });
AggregateFunctionProperties properties = { .returns_default_when_only_null = true, .is_order_dependent = false };
factory.registerFunction("sequenceNextNode", { createAggregateFunctionSequenceNextNode, properties });
}
}

View File

@ -158,7 +158,7 @@ public:
// aggregated events: [A -> B -> C]
// events to find: [C -> D]
// [C -> D] is not matched to 'A -> B -> C' so that it returns null.
return std::make_shared<AggregateFunctionNullVariadic<true, false, true, true>>(nested_function, arguments, params);
return std::make_shared<AggregateFunctionNullVariadic<false, false, true, true>>(nested_function, arguments, params);
}
void insert(Data & a, const Node * v, Arena * arena) const