Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pg_class instead of gp_segment_configuration to test Entry. #294

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/test/regress/expected/rpt_joins.out
Original file line number Diff line number Diff line change
Expand Up @@ -2376,27 +2376,25 @@ explain(costs off) with cte1 as (insert into rpt_issue_15860 values (1, 2) retur
Optimizer: Postgres query optimizer
(10 rows)

-- start_ignore
-- When external_fts is on
-- Seq scan on gp_segment_configuration would be replaced by
-- Function Scan on gp_get_segment_configuration
-- Inconsistence between CIs will cause such cases to fail.
-- Ignore these as workaround.
-- Use other catalog to test Entry.
-- Replicate join Entry.
explain(costs off) with cte1 as (insert into rpt_issue_15860 values (1, 2) returning *) select * from cte1 join gp_segment_configuration g on g.dbid = cte1.c1;
explain(costs off) with cte1 as (insert into rpt_issue_15860 values (1, 2) returning *) select * from cte1 join pg_class c on c.oid = cte1.c1;
QUERY PLAN
---------------------------------------------------------------
Hash Join
Hash Cond: (g.dbid = rpt_issue_15860.c1)
-> Seq Scan on gp_segment_configuration g
Hash Cond: (c.oid = (rpt_issue_15860.c1)::oid)
-> Seq Scan on pg_class c
-> Hash
-> Explicit Gather Motion 3:1 (slice1; segments: 3)
-> Insert on rpt_issue_15860
-> Result
Optimizer: Postgres query optimizer
(8 rows)

-- end_ignore
--
-- Begin of Replicated join Partitioned.
--
Expand Down
6 changes: 2 additions & 4 deletions src/test/regress/sql/rpt_joins.sql
Original file line number Diff line number Diff line change
Expand Up @@ -502,15 +502,13 @@ explain(costs off) with cte1 as (insert into rpt_issue_15860 values (1, 2) retur
explain(costs off) with cte1 as (insert into rpt_issue_15860 values (1, 2) returning *) select * from cte1 right join (select count(*) as c from hash_issue_15860) a on a.c = cte1.c1;
explain(costs off) with cte1 as (insert into rpt_issue_15860 values (1, 2) returning *) select * from cte1 full join (select count(*) as c from hash_issue_15860) a on a.c = cte1.c1;

-- start_ignore
-- When external_fts is on
-- Seq scan on gp_segment_configuration would be replaced by
-- Function Scan on gp_get_segment_configuration
-- Inconsistence between CIs will cause such cases to fail.
-- Ignore these as workaround.
-- Use other catalog to test Entry.
-- Replicate join Entry.
explain(costs off) with cte1 as (insert into rpt_issue_15860 values (1, 2) returning *) select * from cte1 join gp_segment_configuration g on g.dbid = cte1.c1;
-- end_ignore
explain(costs off) with cte1 as (insert into rpt_issue_15860 values (1, 2) returning *) select * from cte1 join pg_class c on c.oid = cte1.c1;

--
-- Begin of Replicated join Partitioned.
Expand Down