order by and unnest are added to multi_colocation_utils tests

pull/1731/head
mehmet furkan şahin 2017-10-25 14:59:52 +03:00
parent 61ae33dc7f
commit 83ac84d594
2 changed files with 18 additions and 17 deletions

View File

@ -286,22 +286,23 @@ SELECT UNNEST(get_colocated_table_array('table6_append'))::regclass ORDER BY 1;
(1 row)
-- check co-located shard list
SELECT get_colocated_shard_array(1300000) ORDER BY 1;
get_colocated_shard_array
---------------------------
{1300000,1300004}
SELECT UNNEST(get_colocated_shard_array(1300000))::regclass ORDER BY 1;
unnest
---------
1300000
1300004
(2 rows)
SELECT UNNEST(get_colocated_shard_array(1300016))::regclass ORDER BY 1;
unnest
---------
1300016
(1 row)
SELECT get_colocated_shard_array(1300016) ORDER BY 1;
get_colocated_shard_array
---------------------------
{1300016}
(1 row)
SELECT get_colocated_shard_array(1300020) ORDER BY 1;
get_colocated_shard_array
---------------------------
{1300020}
SELECT UNNEST(get_colocated_shard_array(1300020))::regclass ORDER BY 1;
unnest
---------
1300020
(1 row)
-- check FindShardIntervalIndex function

View File

@ -139,9 +139,9 @@ SELECT UNNEST(get_colocated_table_array('table5_groupX'))::regclass ORDER BY 1;
SELECT UNNEST(get_colocated_table_array('table6_append'))::regclass ORDER BY 1;
-- check co-located shard list
SELECT get_colocated_shard_array(1300000) ORDER BY 1;
SELECT get_colocated_shard_array(1300016) ORDER BY 1;
SELECT get_colocated_shard_array(1300020) ORDER BY 1;
SELECT UNNEST(get_colocated_shard_array(1300000))::regclass ORDER BY 1;
SELECT UNNEST(get_colocated_shard_array(1300016))::regclass ORDER BY 1;
SELECT UNNEST(get_colocated_shard_array(1300020))::regclass ORDER BY 1;
-- check FindShardIntervalIndex function
SELECT find_shard_interval_index(1300000);