Add a repartition join test for coordinator_shouldhaveshards

fix-repartition-join-single-node
Jelte Fennema 2020-07-07 17:31:07 +02:00
parent 7f1e621734
commit 642dcef3e7
2 changed files with 14 additions and 0 deletions

View File

@ -197,6 +197,15 @@ NOTICE: executing the command locally: SELECT count(*) AS count FROM coordinato
100 100
(1 row) (1 row)
ROLLBACK;
BEGIN;
SET citus.enable_repartition_joins TO ON;
SELECT count(*) FROM test t1, test t2 WHERE t1.x = t2.y;
count
---------------------------------------------------------------------
100
(1 row)
ROLLBACK; ROLLBACK;
BEGIN; BEGIN;
SET citus.enable_repartition_joins TO ON; SET citus.enable_repartition_joins TO ON;

View File

@ -87,6 +87,11 @@ SELECT create_distributed_table('dist_table', 'a', colocate_with := 'none');
SELECT count(*) FROM dist_table; SELECT count(*) FROM dist_table;
ROLLBACK; ROLLBACK;
BEGIN;
SET citus.enable_repartition_joins TO ON;
SELECT count(*) FROM test t1, test t2 WHERE t1.x = t2.y;
ROLLBACK;
BEGIN; BEGIN;
SET citus.enable_repartition_joins TO ON; SET citus.enable_repartition_joins TO ON;
-- trigger local execution -- trigger local execution