Skip to content

Commit 1d0111a

Browse files
authored
PG17 regress test sanity: fix diffs in union_pushdown. (#7762)
Preserve the test error message by adjusting the query so that PG17 cannot pull it up to a join. Another instance of a subquery that can be pulled up to a join with PG17 (#7745) This should have been fixed in, but slipped by, #7745
1 parent 12dd9c1 commit 1d0111a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/regress/expected/union_pushdown.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ $$);
14091409

14101410
-- we hit https://github.com/citusdata/citus/blob/f00c63c33daf3d16f06462626ca14732b141ae7a/src/backend/distributed/planner/relation_restriction_equivalence.c#L235-L242
14111411
SELECT public.explain_has_distributed_subplan($$
1412-
EXPLAIN SELECT * FROM users_table_part u1 WHERE (value_1, user_id) IN
1412+
EXPLAIN SELECT * FROM users_table_part u1 WHERE (value_1 + random(), user_id) IN
14131413
(
14141414
SELECT u1.user_id, user_id FROM users_table_part
14151415
UNION

src/test/regress/sql/union_pushdown.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ $$);
10681068

10691069
-- we hit https://github.com/citusdata/citus/blob/f00c63c33daf3d16f06462626ca14732b141ae7a/src/backend/distributed/planner/relation_restriction_equivalence.c#L235-L242
10701070
SELECT public.explain_has_distributed_subplan($$
1071-
EXPLAIN SELECT * FROM users_table_part u1 WHERE (value_1, user_id) IN
1071+
EXPLAIN SELECT * FROM users_table_part u1 WHERE (value_1 + random(), user_id) IN
10721072
(
10731073
SELECT u1.user_id, user_id FROM users_table_part
10741074
UNION

0 commit comments

Comments
 (0)