diff --git a/src/test/regress/expected/merge.out b/src/test/regress/expected/merge.out index 5f2bb052297..5056ba5432e 100644 --- a/src/test/regress/expected/merge.out +++ b/src/test/regress/expected/merge.out @@ -1944,7 +1944,7 @@ DEBUG: Creating MERGE router plan (47 rows) -- Test 2 : tables are colocated AND source query is not multisharded : should push down to worker. -EXPLAIN (costs off, timing off, summary off) +-- DEBUG LOGS show that query is getting pushed down MERGE INTO target_pushdowntest t USING (SELECT * from source_pushdowntest where id = 1) s on t.id = s.id @@ -1953,22 +1953,6 @@ WHEN NOT MATCHED THEN VALUES (s.id); DEBUG: DEBUG: Creating MERGE router plan - QUERY PLAN ---------------------------------------------------------------------- - Custom Scan (Citus Adaptive) - Task Count: 1 - Tasks Shown: All - -> Task - Node: host=localhost port=xxxxx dbname=regression - -> Merge on target_pushdowntest_4000068 t - -> Nested Loop Left Join - -> Seq Scan on source_pushdowntest_4000064 source_pushdowntest - Filter: (id = 1) - -> Materialize - -> Seq Scan on target_pushdowntest_4000068 t - Filter: (id = 1) -(12 rows) - -- Test 3 : tables are colocated source query is single sharded but not using source distributed column in insertion. let's not pushdown. INSERT INTO source_pushdowntest (id) VALUES (3); EXPLAIN (costs off, timing off, summary off) diff --git a/src/test/regress/sql/merge.sql b/src/test/regress/sql/merge.sql index 583925d8a56..5316b5233ae 100644 --- a/src/test/regress/sql/merge.sql +++ b/src/test/regress/sql/merge.sql @@ -1224,14 +1224,13 @@ WITH colocations AS ( WHERE logicalrelid = 'source_pushdowntest'::regclass OR logicalrelid = 'target_pushdowntest'::regclass ) -SELECT +SELECT CASE WHEN COUNT(DISTINCT colocationid) = 1 THEN 'Same' ELSE 'Different' END AS colocation_status FROM colocations; - SET client_min_messages TO DEBUG1; -- Test 1 : tables are colocated AND query is multisharded AND Join On distributed column : should push down to workers. @@ -1244,8 +1243,7 @@ WHEN NOT MATCHED THEN VALUES (s.id); -- Test 2 : tables are colocated AND source query is not multisharded : should push down to worker. - -EXPLAIN (costs off, timing off, summary off) +-- DEBUG LOGS show that query is getting pushed down MERGE INTO target_pushdowntest t USING (SELECT * from source_pushdowntest where id = 1) s on t.id = s.id