mirror of https://github.com/citusdata/citus.git
Update test case
parent
13a0939ca4
commit
c465be2a30
|
|
@ -532,7 +532,6 @@ DEBUG: Router planner cannot handle multi-shard select queries
|
||||||
-- query is supported when a reference table inside union query is
|
-- query is supported when a reference table inside union query is
|
||||||
-- joined with a distributed table. reference table can be at
|
-- joined with a distributed table. reference table can be at
|
||||||
-- the outer part.
|
-- the outer part.
|
||||||
-- Update output when #8091 is fixed
|
|
||||||
SELECT * FROM
|
SELECT * FROM
|
||||||
(SELECT user_id FROM users_ref_test_table ref LEFT JOIN user_buy_test_table dis
|
(SELECT user_id FROM users_ref_test_table ref LEFT JOIN user_buy_test_table dis
|
||||||
on (ref.id = dis.user_id)
|
on (ref.id = dis.user_id)
|
||||||
|
|
@ -540,16 +539,22 @@ SELECT * FROM
|
||||||
SELECT user_id FROM user_buy_test_table) sub
|
SELECT user_id FROM user_buy_test_table) sub
|
||||||
ORDER BY 1 DESC;
|
ORDER BY 1 DESC;
|
||||||
DEBUG: Router planner cannot handle multi-shard select queries
|
DEBUG: Router planner cannot handle multi-shard select queries
|
||||||
|
DEBUG: Router planner cannot handle multi-shard select queries
|
||||||
|
DEBUG: generating subplan XXX_1 for subquery SELECT dis.user_id FROM (public.users_ref_test_table ref LEFT JOIN public.user_buy_test_table dis ON ((ref.id OPERATOR(pg_catalog.=) dis.user_id)))
|
||||||
|
DEBUG: Router planner cannot handle multi-shard select queries
|
||||||
|
DEBUG: generating subplan XXX_2 for subquery SELECT user_id FROM public.user_buy_test_table
|
||||||
|
DEBUG: Creating router plan
|
||||||
|
DEBUG: generating subplan XXX_3 for subquery SELECT intermediate_result.user_id FROM read_intermediate_result('XXX_1'::text, 'binary'::citus_copy_format) intermediate_result(user_id integer) UNION SELECT intermediate_result.user_id FROM read_intermediate_result('XXX_2'::text, 'binary'::citus_copy_format) intermediate_result(user_id integer)
|
||||||
|
DEBUG: Plan XXX query after replacing subqueries and CTEs: SELECT user_id FROM (SELECT intermediate_result.user_id FROM read_intermediate_result('XXX_3'::text, 'binary'::citus_copy_format) intermediate_result(user_id integer)) sub ORDER BY user_id DESC
|
||||||
|
DEBUG: Creating router plan
|
||||||
user_id
|
user_id
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
7
|
7
|
||||||
3
|
3
|
||||||
2
|
2
|
||||||
1
|
1
|
||||||
(7 rows)
|
(5 rows)
|
||||||
|
|
||||||
RESET client_min_messages;
|
RESET client_min_messages;
|
||||||
-- should be able to pushdown since reference table is in the
|
-- should be able to pushdown since reference table is in the
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,6 @@ ORDER BY 1 DESC;
|
||||||
-- query is supported when a reference table inside union query is
|
-- query is supported when a reference table inside union query is
|
||||||
-- joined with a distributed table. reference table can be at
|
-- joined with a distributed table. reference table can be at
|
||||||
-- the outer part.
|
-- the outer part.
|
||||||
-- Update output when #8091 is fixed
|
|
||||||
SELECT * FROM
|
SELECT * FROM
|
||||||
(SELECT user_id FROM users_ref_test_table ref LEFT JOIN user_buy_test_table dis
|
(SELECT user_id FROM users_ref_test_table ref LEFT JOIN user_buy_test_table dis
|
||||||
on (ref.id = dis.user_id)
|
on (ref.id = dis.user_id)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue