mirror of https://github.com/citusdata/citus.git
Fixes from testing with create_distributed_function
parent
47318ee7e0
commit
020921f1eb
|
@ -1897,6 +1897,10 @@ MasterAggregateExpression(Aggref *originalAggregate,
|
|||
|
||||
newMasterExpression = (Expr *) newMasterAggregate;
|
||||
}
|
||||
else
|
||||
{
|
||||
elog(ERROR, "Aggregate lacks COMBINEFUNC");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2946,8 +2950,9 @@ WorkerAggregateExpressionList(Aggref *originalAggregate,
|
|||
Oid workerPartialId = AggregateFunctionOidWithoutInput(
|
||||
WORKER_PARTIAL_AGGREGATE_NAME);
|
||||
|
||||
aggparam = makeConst(OIDOID, -1, InvalidOid, sizeof(Oid), ObjectIdGetDatum(
|
||||
originalAggregate->aggfnoid), false, true);
|
||||
aggparam = makeConst(REGPROCEDUREOID, -1, InvalidOid, sizeof(Oid),
|
||||
ObjectIdGetDatum(originalAggregate->aggfnoid), false,
|
||||
true);
|
||||
aggArguments = list_make1(makeTargetEntry((Expr *) aggparam, 1, NULL, false));
|
||||
foreach(originalAggArgCell, originalAggregate->args)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue