mirror of https://github.com/citusdata/citus.git
Add value materialization test (#5368)
parent
a39859bc74
commit
af876bf452
|
@ -290,6 +290,7 @@ class CitusUnusualQuerySettingsConfig(CitusMXBaseClusterConfig):
|
|||
"citus.enable_single_hash_repartition_joins": True,
|
||||
"citus.recover_2pc_interval": "1s",
|
||||
"citus.remote_task_check_interval": "1ms",
|
||||
"citus.values_materialization_threshold" : "0"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -452,6 +452,18 @@ SELECT count(*) from local;
|
|||
(1 row)
|
||||
|
||||
ROLLBACK;
|
||||
-- values materialization test
|
||||
WITH cte_1 (num,letter) AS (VALUES (1, 'one'), (2, 'two'), (3, 'three'))
|
||||
SELECT
|
||||
count(*)
|
||||
FROM
|
||||
test
|
||||
WHERE x IN (SELECT num FROM cte_1);
|
||||
count
|
||||
---------------------------------------------------------------------
|
||||
3
|
||||
(1 row)
|
||||
|
||||
-- query fails on the shards should be handled
|
||||
-- nicely
|
||||
\set VERBOSITY terse
|
||||
|
|
|
@ -237,6 +237,14 @@ INSERT INTO local(c, d) SELECT a, b FROM ref;
|
|||
SELECT count(*) from local;
|
||||
ROLLBACK;
|
||||
|
||||
-- values materialization test
|
||||
WITH cte_1 (num,letter) AS (VALUES (1, 'one'), (2, 'two'), (3, 'three'))
|
||||
SELECT
|
||||
count(*)
|
||||
FROM
|
||||
test
|
||||
WHERE x IN (SELECT num FROM cte_1);
|
||||
|
||||
-- query fails on the shards should be handled
|
||||
-- nicely
|
||||
\set VERBOSITY terse
|
||||
|
|
Loading…
Reference in New Issue