From 43fc86646cd407f98c0f8f391d028ca6c9da9532 Mon Sep 17 00:00:00 2001 From: Sait Talha Nisanci Date: Tue, 19 May 2020 13:50:25 +0300 Subject: [PATCH] Update multi_router_planner It seems that there is one problem with multi_router_planner when we use adaptive executor, we should fix the following error: +ERROR: relation "authors_range_840010" does not exist +CONTEXT: while executing command on localhost:57637 --- src/test/regress/expected/multi_router_planner.out | 5 +++-- src/test/regress/sql/multi_router_planner.sql | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/regress/expected/multi_router_planner.out b/src/test/regress/expected/multi_router_planner.out index ab52b50ea..d1644825c 100644 --- a/src/test/regress/expected/multi_router_planner.out +++ b/src/test/regress/expected/multi_router_planner.out @@ -1804,6 +1804,7 @@ RESET citus.log_remote_commands; -- This query was intended to test "multi-shard join is not router plannable" -- To run it using repartition join logic we change the join columns SET citus.task_executor_type to "task-tracker"; +SET citus.enable_repartition_joins to ON; SELECT * FROM articles_range ar join authors_range au on (ar.title = au.name) WHERE ar.author_id = 35; DEBUG: Router planner cannot handle multi-shard select queries @@ -1929,8 +1930,8 @@ DEBUG: pruning merge fetch taskId 13 DETAIL: Creating dependency on merge taskId 6 DEBUG: pruning merge fetch taskId 15 DETAIL: Creating dependency on merge taskId 8 -ERROR: the query contains a join that requires repartitioning -HINT: Set citus.enable_repartition_joins to on to enable repartitioning +ERROR: relation "authors_range_840010" does not exist +CONTEXT: while executing command on localhost:xxxxx -- join between a range partitioned table and reference table is router plannable SELECT * FROM articles_range ar join authors_reference au on (ar.author_id = au.id) WHERE ar.author_id = 1; diff --git a/src/test/regress/sql/multi_router_planner.sql b/src/test/regress/sql/multi_router_planner.sql index f396d384a..cf79fd3b5 100644 --- a/src/test/regress/sql/multi_router_planner.sql +++ b/src/test/regress/sql/multi_router_planner.sql @@ -811,6 +811,7 @@ RESET citus.log_remote_commands; -- This query was intended to test "multi-shard join is not router plannable" -- To run it using repartition join logic we change the join columns SET citus.task_executor_type to "task-tracker"; +SET citus.enable_repartition_joins to ON; SELECT * FROM articles_range ar join authors_range au on (ar.title = au.name) WHERE ar.author_id = 35;