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 8c8763cf697 Fix partition selector
8c8763cf697 is described below
commit 8c8763cf6971ecdd6afca98b2de4a81cbe37f932
Author: Jinbao Chen <[email protected]>
AuthorDate: Mon Jan 26 01:15:03 2026 +0800
Fix partition selector
---
src/backend/executor/execPartition.c | 2 +-
src/test/regress/expected/dpe.out | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/executor/execPartition.c
b/src/backend/executor/execPartition.c
index 1620eb8d3ed..f684fd78f2c 100644
--- a/src/backend/executor/execPartition.c
+++ b/src/backend/executor/execPartition.c
@@ -2381,7 +2381,7 @@ ExecAddMatchingSubPlans(PartitionPruneState *prunestate,
Bitmapset *result)
{
Bitmapset *thisresult;
- thisresult = ExecFindMatchingSubPlans(prunestate, true, NULL, -1, NIL);
+ thisresult = ExecFindMatchingSubPlans(prunestate, false, NULL, -1, NIL);
result = bms_add_members(result, thisresult);
diff --git a/src/test/regress/expected/dpe.out
b/src/test/regress/expected/dpe.out
index 01a86bca7b4..1e4a54d5bd4 100644
--- a/src/test/regress/expected/dpe.out
+++ b/src/test/regress/expected/dpe.out
@@ -652,7 +652,7 @@ explain (costs off, timing off, summary off, analyze)
select * from t, pt where
---------------------------------------------------------------------------------
Gather Motion 3:1 (slice1; segments: 3) (actual rows=18 loops=1)
-> Nested Loop (actual rows=8 loops=1)
- Join Filter: (t.tid = pt.ptid)
+ Join Filter: (pt.ptid = t.tid)
Rows Removed by Join Filter: 30
-> Broadcast Motion 3:3 (slice2; segments: 3) (actual rows=2
loops=1)
-> Seq Scan on t (actual rows=2 loops=1)
@@ -706,7 +706,7 @@ explain (costs off, timing off, summary off, analyze)
select * from t, pt where
------------------------------------------------------------------------------------------------------------
Gather Motion 3:1 (slice1; segments: 3) (actual rows=1 loops=1)
-> Nested Loop (actual rows=1 loops=1)
- Join Filter: (t.tid = pt.ptid)
+ Join Filter: (pt.ptid = t.tid)
Rows Removed by Join Filter: 1
-> Broadcast Motion 3:3 (slice2; segments: 3) (actual rows=2
loops=1)
-> Seq Scan on t (actual rows=2 loops=1)
@@ -745,7 +745,7 @@ explain (costs off, timing off, summary off, analyze)
select * from t, pt where
-----------------------------------------------------------------------------------------------------------------------------
Gather Motion 3:1 (slice1; segments: 3) (actual rows=18 loops=1)
-> Nested Loop (actual rows=8 loops=1)
- Join Filter: (t.tid = pt.ptid)
+ Join Filter: (pt.ptid = t.tid)
Rows Removed by Join Filter: 30
-> Broadcast Motion 3:3 (slice2; segments: 3) (actual rows=2
loops=1)
-> Seq Scan on t (actual rows=2 loops=1)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]