mirror of https://github.com/citusdata/citus.git
PG18: fix query results diff in merge regress test.
The test used SQL functions which can be cached in PG18+ since commit 0dca5d68d. This means that a Citus distributed plan can be cached, but the copy function for a distributed plan did not include the `sourceResultRepartitionColumnIndex` field, which is critical for MERGE queries. Including it fixes the diff problem. Also update `OutDistributedPlan()` function so that the field is picked up by `nodeToString()`.pull/8323/head
parent
b10aa02908
commit
43156e0674
|
|
@ -137,6 +137,8 @@ CopyNodeDistributedPlan(COPYFUNC_ARGS)
|
||||||
COPY_SCALAR_FIELD(fastPathRouterPlan);
|
COPY_SCALAR_FIELD(fastPathRouterPlan);
|
||||||
COPY_SCALAR_FIELD(numberOfTimesExecuted);
|
COPY_SCALAR_FIELD(numberOfTimesExecuted);
|
||||||
COPY_NODE_FIELD(planningError);
|
COPY_NODE_FIELD(planningError);
|
||||||
|
|
||||||
|
COPY_SCALAR_FIELD(sourceResultRepartitionColumnIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -203,6 +203,7 @@ OutDistributedPlan(OUTFUNC_ARGS)
|
||||||
WRITE_UINT_FIELD(numberOfTimesExecuted);
|
WRITE_UINT_FIELD(numberOfTimesExecuted);
|
||||||
|
|
||||||
WRITE_NODE_FIELD(planningError);
|
WRITE_NODE_FIELD(planningError);
|
||||||
|
WRITE_INT_FIELD(sourceResultRepartitionColumnIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue