Add ORDER BY to multi_router_planner

pull/2720/head
Onder Kalaci 2019-05-21 15:54:33 +03:00
parent f06a79563d
commit f76abfe470
2 changed files with 9 additions and 7 deletions

View File

@ -1025,24 +1025,25 @@ SET citus.enable_repartition_joins TO OFF;
-- handled by real-time executor -- handled by real-time executor
SELECT * SELECT *
FROM articles_hash FROM articles_hash
WHERE author_id >= 1 AND author_id <= 3; WHERE author_id >= 1 AND author_id <= 3
ORDER BY 1,2,3,4;
id | author_id | title | word_count id | author_id | title | word_count
----+-----------+--------------+------------ ----+-----------+--------------+------------
1 | 1 | arsenous | 9572 1 | 1 | arsenous | 9572
2 | 2 | abducing | 13642
3 | 3 | asternal | 10480 3 | 3 | asternal | 10480
11 | 1 | alamo | 1347 11 | 1 | alamo | 1347
12 | 2 | archiblast | 18185
13 | 3 | aseyev | 2255 13 | 3 | aseyev | 2255
21 | 1 | arcading | 5890 21 | 1 | arcading | 5890
22 | 2 | antipope | 2728
23 | 3 | abhorring | 6799 23 | 3 | abhorring | 6799
31 | 1 | athwartships | 7271 31 | 1 | athwartships | 7271
32 | 2 | amazon | 11342
33 | 3 | autochrome | 8180 33 | 3 | autochrome | 8180
41 | 1 | aznavour | 11814 41 | 1 | aznavour | 11814
43 | 3 | affixal | 12723
2 | 2 | abducing | 13642
12 | 2 | archiblast | 18185
22 | 2 | antipope | 2728
32 | 2 | amazon | 11342
42 | 2 | ausable | 15885 42 | 2 | ausable | 15885
43 | 3 | affixal | 12723
(15 rows) (15 rows)
SET citus.task_executor_type TO 'real-time'; SET citus.task_executor_type TO 'real-time';

View File

@ -473,7 +473,8 @@ SET citus.enable_repartition_joins TO OFF;
-- handled by real-time executor -- handled by real-time executor
SELECT * SELECT *
FROM articles_hash FROM articles_hash
WHERE author_id >= 1 AND author_id <= 3; WHERE author_id >= 1 AND author_id <= 3
ORDER BY 1,2,3,4;
SET citus.task_executor_type TO 'real-time'; SET citus.task_executor_type TO 'real-time';