mirror of https://github.com/citusdata/citus.git
order by and unnest are added to multi_colocation_utils tests
parent
61ae33dc7f
commit
83ac84d594
|
@ -286,22 +286,23 @@ SELECT UNNEST(get_colocated_table_array('table6_append'))::regclass ORDER BY 1;
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- check co-located shard list
|
-- check co-located shard list
|
||||||
SELECT get_colocated_shard_array(1300000) ORDER BY 1;
|
SELECT UNNEST(get_colocated_shard_array(1300000))::regclass ORDER BY 1;
|
||||||
get_colocated_shard_array
|
unnest
|
||||||
---------------------------
|
---------
|
||||||
{1300000,1300004}
|
1300000
|
||||||
|
1300004
|
||||||
|
(2 rows)
|
||||||
|
|
||||||
|
SELECT UNNEST(get_colocated_shard_array(1300016))::regclass ORDER BY 1;
|
||||||
|
unnest
|
||||||
|
---------
|
||||||
|
1300016
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT get_colocated_shard_array(1300016) ORDER BY 1;
|
SELECT UNNEST(get_colocated_shard_array(1300020))::regclass ORDER BY 1;
|
||||||
get_colocated_shard_array
|
unnest
|
||||||
---------------------------
|
---------
|
||||||
{1300016}
|
1300020
|
||||||
(1 row)
|
|
||||||
|
|
||||||
SELECT get_colocated_shard_array(1300020) ORDER BY 1;
|
|
||||||
get_colocated_shard_array
|
|
||||||
---------------------------
|
|
||||||
{1300020}
|
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- check FindShardIntervalIndex function
|
-- check FindShardIntervalIndex function
|
||||||
|
|
|
@ -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;
|
SELECT UNNEST(get_colocated_table_array('table6_append'))::regclass ORDER BY 1;
|
||||||
|
|
||||||
-- check co-located shard list
|
-- check co-located shard list
|
||||||
SELECT get_colocated_shard_array(1300000) ORDER BY 1;
|
SELECT UNNEST(get_colocated_shard_array(1300000))::regclass ORDER BY 1;
|
||||||
SELECT get_colocated_shard_array(1300016) ORDER BY 1;
|
SELECT UNNEST(get_colocated_shard_array(1300016))::regclass ORDER BY 1;
|
||||||
SELECT get_colocated_shard_array(1300020) ORDER BY 1;
|
SELECT UNNEST(get_colocated_shard_array(1300020))::regclass ORDER BY 1;
|
||||||
|
|
||||||
-- check FindShardIntervalIndex function
|
-- check FindShardIntervalIndex function
|
||||||
SELECT find_shard_interval_index(1300000);
|
SELECT find_shard_interval_index(1300000);
|
||||||
|
|
Loading…
Reference in New Issue