This is an automated email from the ASF dual-hosted git repository. maxyang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 4c61c98deb53974d5423fb44909d7144f88b7f2a Author: Adam Lee <[email protected]> AuthorDate: Fri Oct 28 11:27:10 2022 +0800 Remove two not used elements of Agg The elements combineStates and finalizeAggs of Agg are not used anywhere, just remove them. --- src/backend/nodes/copyfuncs.c | 2 -- src/include/nodes/plannodes.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 950f052bf0..3601d9ec05 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -1340,8 +1340,6 @@ _copyAgg(const Agg *from) COPY_SCALAR_FIELD(aggstrategy); COPY_SCALAR_FIELD(aggsplit); COPY_SCALAR_FIELD(numCols); - COPY_SCALAR_FIELD(combineStates); - COPY_SCALAR_FIELD(finalizeAggs); if (from->numCols > 0) { COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber)); diff --git a/src/include/nodes/plannodes.h b/src/include/nodes/plannodes.h index 9afa2bec1b..cbff1fe66b 100644 --- a/src/include/nodes/plannodes.h +++ b/src/include/nodes/plannodes.h @@ -1294,8 +1294,6 @@ typedef struct Agg AggSplit aggsplit; /* agg-splitting mode, see nodes.h */ int numCols; /* number of grouping columns */ AttrNumber *grpColIdx; /* their indexes in the target list */ - bool combineStates; /* input tuples contain transition states */ - bool finalizeAggs; /* should we call the finalfn on agg states? */ Oid *grpOperators; /* equality operators to compare with */ Oid *grpCollations; long numGroups; /* estimated number of groups in input */ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
