Fix misspelling in multi_colocation_utils

pull/3016/head
Marco Slot 2019-09-24 09:40:35 +02:00
parent 4b4459ee62
commit 0dea485c68
2 changed files with 159 additions and 159 deletions

View File

@ -497,9 +497,9 @@ SELECT create_distributed_table('table3_groupE', 'id');
(1 row) (1 row)
-- test different schema -- test different schema
CREATE SCHEMA schema_collocation; CREATE SCHEMA schema_colocation;
CREATE TABLE schema_collocation.table4_groupE ( id int ); CREATE TABLE schema_colocation.table4_groupE ( id int );
SELECT create_distributed_table('schema_collocation.table4_groupE', 'id'); SELECT create_distributed_table('schema_colocation.table4_groupE', 'id');
create_distributed_table create_distributed_table
-------------------------- --------------------------
@ -569,11 +569,11 @@ SELECT logicalrelid, colocationid FROM pg_dist_partition
WHERE colocationid >= 1 AND colocationid < 1000 WHERE colocationid >= 1 AND colocationid < 1000
ORDER BY colocationid, logicalrelid; ORDER BY colocationid, logicalrelid;
logicalrelid | colocationid logicalrelid | colocationid
----------------------------------+-------------- ---------------------------------+--------------
table1_groupe | 4 table1_groupe | 4
table2_groupe | 4 table2_groupe | 4
table3_groupe | 4 table3_groupe | 4
schema_collocation.table4_groupe | 4 schema_colocation.table4_groupe | 4
table4_groupe | 4 table4_groupe | 4
table1_groupb | 5 table1_groupb | 5
table2_groupb | 5 table2_groupb | 5
@ -624,7 +624,7 @@ SELECT "Column", "Type", "Modifiers" FROM table_desc WHERE relid='public.table3_
id | integer | id | integer |
(2 rows) (2 rows)
SELECT "Column", "Type", "Modifiers" FROM table_desc WHERE relid='schema_collocation.table4_groupE_1300064'::regclass; SELECT "Column", "Type", "Modifiers" FROM table_desc WHERE relid='schema_colocation.table4_groupE_1300064'::regclass;
Column | Type | Modifiers Column | Type | Modifiers
--------+---------+----------- --------+---------+-----------
id | integer | id | integer |
@ -677,7 +677,7 @@ ORDER BY
table1, table1,
table2; table2;
table1 | table2 | colocated table1 | table2 | colocated
----------------------------------+----------------------------------+----------- ---------------------------------+---------------------------------+-----------
table1_group1 | table2_group1 | t table1_group1 | table2_group1 | t
table1_groupb | table2_groupb | t table1_groupb | table2_groupb | t
table1_groupc | table2_groupc | t table1_groupc | table2_groupc | t
@ -686,14 +686,14 @@ ORDER BY
table2_groupd | table3_groupd | t table2_groupd | table3_groupd | t
table1_groupe | table2_groupe | t table1_groupe | table2_groupe | t
table1_groupe | table3_groupe | t table1_groupe | table3_groupe | t
table1_groupe | schema_collocation.table4_groupe | t table1_groupe | schema_colocation.table4_groupe | t
table1_groupe | table4_groupe | t table1_groupe | table4_groupe | t
table2_groupe | table3_groupe | t table2_groupe | table3_groupe | t
table2_groupe | schema_collocation.table4_groupe | t table2_groupe | schema_colocation.table4_groupe | t
table2_groupe | table4_groupe | t table2_groupe | table4_groupe | t
table3_groupe | schema_collocation.table4_groupe | t table3_groupe | schema_colocation.table4_groupe | t
table3_groupe | table4_groupe | t table3_groupe | table4_groupe | t
schema_collocation.table4_groupe | table4_groupe | t schema_colocation.table4_groupe | table4_groupe | t
table1_group_none_1 | table2_group_none_1 | t table1_group_none_1 | table2_group_none_1 | t
table1_groupf | table2_groupf | t table1_groupf | table2_groupf | t
(18 rows) (18 rows)
@ -718,7 +718,7 @@ ORDER BY
shardid, shardid,
nodeport; nodeport;
logicalrelid | shardid | shardstorage | nodeport | shardminvalue | shardmaxvalue logicalrelid | shardid | shardstorage | nodeport | shardminvalue | shardmaxvalue
----------------------------------+---------+--------------+----------+---------------+--------------- ---------------------------------+---------+--------------+----------+---------------+---------------
table1_groupb | 1300026 | t | 57637 | -2147483648 | -1 table1_groupb | 1300026 | t | 57637 | -2147483648 | -1
table1_groupb | 1300027 | t | 57638 | 0 | 2147483647 table1_groupb | 1300027 | t | 57638 | 0 | 2147483647
table2_groupb | 1300028 | t | 57637 | -2147483648 | -1 table2_groupb | 1300028 | t | 57637 | -2147483648 | -1
@ -791,10 +791,10 @@ ORDER BY
table3_groupe | 1300062 | t | 57638 | -2147483648 | -1 table3_groupe | 1300062 | t | 57638 | -2147483648 | -1
table3_groupe | 1300063 | t | 57637 | 0 | 2147483647 table3_groupe | 1300063 | t | 57637 | 0 | 2147483647
table3_groupe | 1300063 | t | 57638 | 0 | 2147483647 table3_groupe | 1300063 | t | 57638 | 0 | 2147483647
schema_collocation.table4_groupe | 1300064 | t | 57637 | -2147483648 | -1 schema_colocation.table4_groupe | 1300064 | t | 57637 | -2147483648 | -1
schema_collocation.table4_groupe | 1300064 | t | 57638 | -2147483648 | -1 schema_colocation.table4_groupe | 1300064 | t | 57638 | -2147483648 | -1
schema_collocation.table4_groupe | 1300065 | t | 57637 | 0 | 2147483647 schema_colocation.table4_groupe | 1300065 | t | 57637 | 0 | 2147483647
schema_collocation.table4_groupe | 1300065 | t | 57638 | 0 | 2147483647 schema_colocation.table4_groupe | 1300065 | t | 57638 | 0 | 2147483647
table1_group_none_1 | 1300066 | t | 57637 | -2147483648 | -1 table1_group_none_1 | 1300066 | t | 57637 | -2147483648 | -1
table1_group_none_1 | 1300066 | t | 57638 | -2147483648 | -1 table1_group_none_1 | 1300066 | t | 57638 | -2147483648 | -1
table1_group_none_1 | 1300067 | t | 57637 | 0 | 2147483647 table1_group_none_1 | 1300067 | t | 57637 | 0 | 2147483647
@ -1045,7 +1045,7 @@ DROP TABLE table1_groupe;
DROP TABLE table2_groupe; DROP TABLE table2_groupe;
DROP TABLE table3_groupe; DROP TABLE table3_groupe;
DROP TABLE table4_groupe; DROP TABLE table4_groupe;
DROP TABLE schema_collocation.table4_groupe; DROP TABLE schema_colocation.table4_groupe;
DROP TABLE table1_group_none_1; DROP TABLE table1_group_none_1;
DROP TABLE table2_group_none_1; DROP TABLE table2_group_none_1;
DROP TABLE table1_group_none_2; DROP TABLE table1_group_none_2;

View File

@ -234,10 +234,10 @@ CREATE TABLE table3_groupE ( dummy_column text, id int );
SELECT create_distributed_table('table3_groupE', 'id'); SELECT create_distributed_table('table3_groupE', 'id');
-- test different schema -- test different schema
CREATE SCHEMA schema_collocation; CREATE SCHEMA schema_colocation;
CREATE TABLE schema_collocation.table4_groupE ( id int ); CREATE TABLE schema_colocation.table4_groupE ( id int );
SELECT create_distributed_table('schema_collocation.table4_groupE', 'id'); SELECT create_distributed_table('schema_colocation.table4_groupE', 'id');
-- test colocate_with option -- test colocate_with option
CREATE TABLE table1_group_none_1 ( id int ); CREATE TABLE table1_group_none_1 ( id int );
@ -288,7 +288,7 @@ SELECT create_distributed_table('table_bigint', 'id', colocate_with => 'table1_g
-- check worker table schemas -- check worker table schemas
\c - - - :worker_1_port \c - - - :worker_1_port
SELECT "Column", "Type", "Modifiers" FROM table_desc WHERE relid='public.table3_groupE_1300062'::regclass; SELECT "Column", "Type", "Modifiers" FROM table_desc WHERE relid='public.table3_groupE_1300062'::regclass;
SELECT "Column", "Type", "Modifiers" FROM table_desc WHERE relid='schema_collocation.table4_groupE_1300064'::regclass; SELECT "Column", "Type", "Modifiers" FROM table_desc WHERE relid='schema_colocation.table4_groupE_1300064'::regclass;
\c - - - :master_port \c - - - :master_port
SET citus.next_shard_id TO 1300080; SET citus.next_shard_id TO 1300080;
@ -443,7 +443,7 @@ DROP TABLE table1_groupe;
DROP TABLE table2_groupe; DROP TABLE table2_groupe;
DROP TABLE table3_groupe; DROP TABLE table3_groupe;
DROP TABLE table4_groupe; DROP TABLE table4_groupe;
DROP TABLE schema_collocation.table4_groupe; DROP TABLE schema_colocation.table4_groupe;
DROP TABLE table1_group_none_1; DROP TABLE table1_group_none_1;
DROP TABLE table2_group_none_1; DROP TABLE table2_group_none_1;
DROP TABLE table1_group_none_2; DROP TABLE table1_group_none_2;