This is an automated email from the ASF dual-hosted git repository.

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this 
push:
     new 6e6222d104c Use final aggragete tlist in grouping sets
6e6222d104c is described below

commit 6e6222d104c4bc2d0a92378442f9a0b68cd3ffbb
Author: Jinbao Chen <[email protected]>
AuthorDate: Wed Jan 21 20:22:08 2026 +0800

    Use final aggragete tlist in grouping sets
---
 src/backend/cdb/cdbgroupingpaths.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/cdb/cdbgroupingpaths.c 
b/src/backend/cdb/cdbgroupingpaths.c
index b9f9d26b0ed..fb6a05e114e 100644
--- a/src/backend/cdb/cdbgroupingpaths.c
+++ b/src/backend/cdb/cdbgroupingpaths.c
@@ -1139,7 +1139,7 @@ add_second_stage_group_agg_path(PlannerInfo *root,
                                                                                
output_rel,
                                                                                
path,
                                                                                
ctx->target,
-                                                                               
(ctx->parseGroupClause ? AGG_SORTED : AGG_PLAIN),
+                                                                               
(ctx->final_groupClause ? AGG_SORTED : AGG_PLAIN),
                                                                                
ctx->hasAggs ? AGGSPLIT_FINAL_DESERIAL : AGGSPLIT_SIMPLE,
                                                                                
false, /* streaming */
                                                                                
ctx->final_groupClause,
@@ -1177,7 +1177,7 @@ add_second_stage_group_agg_path(PlannerInfo *root,
                                                                output_rel,
                                                                path,
                                                                ctx->target,
-                                                               
(ctx->parseGroupClause ? AGG_SORTED : AGG_PLAIN),
+                                                               
(ctx->final_groupClause ? AGG_SORTED : AGG_PLAIN),
                                                                ctx->hasAggs ? 
AGGSPLIT_FINAL_DESERIAL : AGGSPLIT_SIMPLE,
                                                                false, /* 
streaming */
                                                                
ctx->final_groupClause,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to