Add new regression tests

pull/3703/head
Onder Kalaci 2020-04-03 15:45:02 +02:00
parent 4b3d17f466
commit a695b44ce9
2 changed files with 9 additions and 1 deletions

View File

@ -1011,6 +1011,11 @@ LEFT JOIN
WHERE d1.user_id = d2.user_id )) AS bar USING (user_id);
ERROR: cannot pushdown the subquery
DETAIL: Complex subqueries and CTEs cannot be in the outer part of the outer join
-- some test with failures
WITH a AS (SELECT * FROM users_table LIMIT 10)
SELECT user_id/0 FROM users_table JOIN a USING (user_id);
ERROR: division by zero
CONTEXT: while executing command on localhost:xxxxx
RESET citus.enable_cte_inlining;
DROP VIEW basic_view;
DROP VIEW cte_view;

View File

@ -695,8 +695,11 @@ LEFT JOIN
FROM distinct_undistribured d2
WHERE d1.user_id = d2.user_id )) AS bar USING (user_id);
RESET citus.enable_cte_inlining;
-- some test with failures
WITH a AS (SELECT * FROM users_table LIMIT 10)
SELECT user_id/0 FROM users_table JOIN a USING (user_id);
RESET citus.enable_cte_inlining;
DROP VIEW basic_view;
DROP VIEW cte_view;