mirror of https://github.com/citusdata/citus.git
test task tracker repartition with replication >1 (#3944)
parent
f458d1fd1c
commit
50e115fe3a
|
@ -510,6 +510,22 @@ SELECT count(*) FROM test_numeric t1 JOIN test_numeric as t2 ON (t1.a = t2.b);
|
||||||
1001
|
1001
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
|
SET citus.shard_replication_factor to 2;
|
||||||
|
CREATE TABLE dist_1 (a int , b int);
|
||||||
|
SELECT create_distributed_table('dist_1', 'a');
|
||||||
|
create_distributed_table
|
||||||
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
(1 row)
|
||||||
|
|
||||||
|
INSERT INTO dist_1 SELECT x,10-x FROM generate_series(1,10) x;
|
||||||
|
SET citus.task_executor_type to 'task-tracker';
|
||||||
|
SELECT COUNT(*) FROM dist_1 f, dist_1 s WHERE f.a = s.b;
|
||||||
|
count
|
||||||
|
---------------------------------------------------------------------
|
||||||
|
9
|
||||||
|
(1 row)
|
||||||
|
|
||||||
SET client_min_messages TO ERROR;
|
SET client_min_messages TO ERROR;
|
||||||
RESET search_path;
|
RESET search_path;
|
||||||
DROP SCHEMA single_hash_repartition CASCADE;
|
DROP SCHEMA single_hash_repartition CASCADE;
|
||||||
|
|
|
@ -146,6 +146,14 @@ SET citus.enable_single_hash_repartition_joins TO ON;
|
||||||
SET citus.enable_repartition_joins TO on;
|
SET citus.enable_repartition_joins TO on;
|
||||||
SELECT count(*) FROM test_numeric t1 JOIN test_numeric as t2 ON (t1.a = t2.b);
|
SELECT count(*) FROM test_numeric t1 JOIN test_numeric as t2 ON (t1.a = t2.b);
|
||||||
|
|
||||||
|
SET citus.shard_replication_factor to 2;
|
||||||
|
CREATE TABLE dist_1 (a int , b int);
|
||||||
|
SELECT create_distributed_table('dist_1', 'a');
|
||||||
|
INSERT INTO dist_1 SELECT x,10-x FROM generate_series(1,10) x;
|
||||||
|
|
||||||
|
SET citus.task_executor_type to 'task-tracker';
|
||||||
|
SELECT COUNT(*) FROM dist_1 f, dist_1 s WHERE f.a = s.b;
|
||||||
|
|
||||||
SET client_min_messages TO ERROR;
|
SET client_min_messages TO ERROR;
|
||||||
RESET search_path;
|
RESET search_path;
|
||||||
DROP SCHEMA single_hash_repartition CASCADE;
|
DROP SCHEMA single_hash_repartition CASCADE;
|
||||||
|
|
Loading…
Reference in New Issue