mirror of https://github.com/citusdata/citus.git
Fix multi test
parent
a829b7555b
commit
9adef99248
|
@ -36,9 +36,11 @@ DEBUG: Plan XXX query after replacing subqueries and CTEs: SELECT table1.id, ta
|
|||
(1 row)
|
||||
|
||||
-- Check joins of a function that returns a single integer
|
||||
SET citus.enable_metadata_sync TO OFF;
|
||||
CREATE FUNCTION add(integer, integer) RETURNS integer
|
||||
AS 'SELECT $1 + $2;'
|
||||
LANGUAGE SQL;
|
||||
RESET citus.enable_metadata_sync;
|
||||
SELECT create_distributed_function('add(integer,integer)');
|
||||
create_distributed_function
|
||||
---------------------------------------------------------------------
|
||||
|
|
|
@ -36,9 +36,11 @@ DEBUG: Plan XXX query after replacing subqueries and CTEs: SELECT table1.id, ta
|
|||
(1 row)
|
||||
|
||||
-- Check joins of a function that returns a single integer
|
||||
SET citus.enable_metadata_sync TO OFF;
|
||||
CREATE FUNCTION add(integer, integer) RETURNS integer
|
||||
AS 'SELECT $1 + $2;'
|
||||
LANGUAGE SQL;
|
||||
RESET citus.enable_metadata_sync;
|
||||
SELECT create_distributed_function('add(integer,integer)');
|
||||
DEBUG: switching to sequential query execution mode
|
||||
DETAIL: A distributed function is created. To make sure subsequent commands see the type correctly we need to make sure to use only one connection for all future commands
|
||||
|
|
|
@ -30,9 +30,11 @@ CREATE SEQUENCE numbers;
|
|||
SELECT * FROM table1 JOIN nextval('numbers') n ON (id = n) ORDER BY id ASC;
|
||||
|
||||
-- Check joins of a function that returns a single integer
|
||||
SET citus.enable_metadata_sync TO OFF;
|
||||
CREATE FUNCTION add(integer, integer) RETURNS integer
|
||||
AS 'SELECT $1 + $2;'
|
||||
LANGUAGE SQL;
|
||||
RESET citus.enable_metadata_sync;
|
||||
SELECT create_distributed_function('add(integer,integer)');
|
||||
SELECT * FROM table1 JOIN add(3,5) sum ON (id = sum) ORDER BY id ASC;
|
||||
|
||||
|
|
Loading…
Reference in New Issue