Fix a flaky test in mixed_relkind_tests (#4300)

pull/4303/head
Onur Tirtir 2020-11-06 14:53:30 +03:00 committed by GitHub
parent 1f723cabd2
commit 5d5966f700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -212,15 +212,15 @@ SELECT * FROM mat_view_on_dist UNION SELECT 1 ORDER BY 1;
SET client_min_messages TO DEBUG1;
-- can push down the union in subquery
SELECT * FROM (SELECT * FROM partitioned_distributed_table UNION SELECT * FROM partitioned_distributed_table) AS foo;
SELECT * FROM (SELECT * FROM partitioned_distributed_table UNION SELECT * FROM partitioned_distributed_table) AS foo ORDER BY 1,2;
a | b
---------------------------------------------------------------------
1 | 2
5 | 6
4 | 5
3 | 4
0 | 1
1 | 2
2 | 3
3 | 4
4 | 5
5 | 6
(6 rows)
-- cannot push down the subquery, should evaluate subquery by creating a subplan

View File

@ -78,7 +78,7 @@ SELECT * FROM mat_view_on_dist UNION SELECT 1 ORDER BY 1;
SET client_min_messages TO DEBUG1;
-- can push down the union in subquery
SELECT * FROM (SELECT * FROM partitioned_distributed_table UNION SELECT * FROM partitioned_distributed_table) AS foo;
SELECT * FROM (SELECT * FROM partitioned_distributed_table UNION SELECT * FROM partitioned_distributed_table) AS foo ORDER BY 1,2;
-- cannot push down the subquery, should evaluate subquery by creating a subplan
SELECT COUNT(*) FROM (SELECT b, random() FROM partitioned_distributed_table GROUP BY b) AS foo;