mirror of https://github.com/citusdata/citus.git
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
--
|
|
-- MULTI_MX_REPARTITION_W1_UDT
|
|
--
|
|
\c - - - :worker_1_port
|
|
SET client_min_messages = LOG;
|
|
-- Query that should result in a repartition join on UDT column.
|
|
SET citus.large_table_shard_count = 1;
|
|
SET citus.task_executor_type = 'task-tracker';
|
|
SET citus.log_multi_join_order = true;
|
|
-- This query was intended to test "Query that should result in a repartition
|
|
-- join on int column, and be empty." In order to remove broadcast logic, we
|
|
-- manually make the query router plannable.
|
|
SELECT * FROM repartition_udt JOIN repartition_udt_other
|
|
ON repartition_udt.pk = repartition_udt_other.pk
|
|
WHERE repartition_udt.pk = 1;
|
|
pk | udtcol | txtcol | pk | udtcol | txtcol
|
|
----+--------+--------+----+--------+--------
|
|
(0 rows)
|
|
|
|
SELECT * FROM repartition_udt JOIN repartition_udt_other
|
|
ON repartition_udt.udtcol = repartition_udt_other.udtcol
|
|
WHERE repartition_udt.pk > 1
|
|
ORDER BY repartition_udt.pk;
|
|
LOG: join order: [ "repartition_udt" ][ dual partition join "repartition_udt_other" ]
|
|
pk | udtcol | txtcol | pk | udtcol | txtcol
|
|
----+--------+--------+----+--------+--------
|
|
2 | (1,2) | foo | 8 | (1,2) | foo
|
|
3 | (1,3) | foo | 9 | (1,3) | foo
|
|
4 | (2,1) | foo | 10 | (2,1) | foo
|
|
5 | (2,2) | foo | 11 | (2,2) | foo
|
|
6 | (2,3) | foo | 12 | (2,3) | foo
|
|
(5 rows)
|
|
|