Skip to content

Commit c53d3db

Browse files
dgkimuraavamingli
authored andcommitted
Disable flaky qp_union_intersect test
This commit amends commit d63731d. Fallback needs to happen inside the rollback'd transaction as that is where the stale cache entry is not cleaned up properly.
1 parent e879801 commit c53d3db

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/test/regress/expected/qp_union_intersect.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,6 +1687,8 @@ rollback;
16871687
-- @description union_update_test28: Negative Tests Update the partition key to an out of dml_union_range value with no default partition
16881688
begin;
16891689
DROP TABLE dml_union_s_1_prt_def;
1690+
-- GPDB_12_MERGE_FIXME: This test case is flaky, ERROR: expected partdefid 134733, but got 0 (partdesc.c:194)
1691+
set optimizer=off;
16901692
SELECT COUNT(DISTINCT(d)) FROM dml_union_s;
16911693
count
16921694
-------
@@ -1699,9 +1701,8 @@ DETAIL: Partition key of the failing row contains (d) = (null).
16991701
--SELECT DISTINCT(d) FROM dml_union_s;
17001702
--SELECT COUNT(DISTINCT(d)) FROM dml_union_s;
17011703
rollback;
1704+
reset optimizer;
17021705
-- @description union_update_test29: Negative Tests UPDATE violates the CHECK constraint on the column
1703-
-- GPDB_12_MERGE_FIXME: This test case is flaky, ERROR: expected partdefid 134733, but got 0 (partdesc.c:194)
1704-
set optimizer=off;
17051706
SELECT COUNT(DISTINCT(b)) FROM dml_union_s;
17061707
count
17071708
-------
@@ -1711,7 +1712,6 @@ SELECT COUNT(DISTINCT(b)) FROM dml_union_s;
17111712
UPDATE dml_union_s SET b = (SELECT NULL UNION SELECT NULL)::numeric;
17121713
ERROR: null value in column "b" of relation "dml_union_s_1_prt_2" violates not-null constraint (seg0 127.0.1.1:7002 pid=773223)
17131714
DETAIL: Failing row contains (5, null, s, 5).
1714-
reset optimizer;
17151715
--SELECT COUNT(DISTINCT(b)) FROM dml_union_s;
17161716
--SELECT DISTINCT(b) FROM dml_union_s;
17171717
-- @description union_update_test30: Negative Tests more than one row returned by a sub-query used as an expression

src/test/regress/expected/qp_union_intersect_optimizer.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,6 +1688,8 @@ rollback;
16881688
-- @description union_update_test28: Negative Tests Update the partition key to an out of dml_union_range value with no default partition
16891689
begin;
16901690
DROP TABLE dml_union_s_1_prt_def;
1691+
-- GPDB_12_MERGE_FIXME: This test case is flaky, ERROR: expected partdefid 134733, but got 0 (partdesc.c:194)
1692+
set optimizer=off;
16911693
SELECT COUNT(DISTINCT(d)) FROM dml_union_s;
16921694
count
16931695
-------
@@ -1700,9 +1702,8 @@ DETAIL: Partition key of the failing row contains (d) = (null).
17001702
--SELECT DISTINCT(d) FROM dml_union_s;
17011703
--SELECT COUNT(DISTINCT(d)) FROM dml_union_s;
17021704
rollback;
1705+
reset optimizer;
17031706
-- @description union_update_test29: Negative Tests UPDATE violates the CHECK constraint on the column
1704-
-- GPDB_12_MERGE_FIXME: This test case is flaky, ERROR: expected partdefid 134733, but got 0 (partdesc.c:194)
1705-
set optimizer=off;
17061707
SELECT COUNT(DISTINCT(b)) FROM dml_union_s;
17071708
count
17081709
-------
@@ -1712,7 +1713,6 @@ SELECT COUNT(DISTINCT(b)) FROM dml_union_s;
17121713
UPDATE dml_union_s SET b = (SELECT NULL UNION SELECT NULL)::numeric;
17131714
ERROR: null value in column "b" violates not-null constraint (seg0 127.0.0.1:7002 pid=31287)
17141715
DETAIL: Failing row contains (1, null, s, 1).
1715-
reset optimizer;
17161716
--SELECT COUNT(DISTINCT(b)) FROM dml_union_s;
17171717
--SELECT DISTINCT(b) FROM dml_union_s;
17181718
-- @description union_update_test30: Negative Tests more than one row returned by a sub-query used as an expression

src/test/regress/sql/qp_union_intersect.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,18 +619,18 @@ rollback;
619619
-- @description union_update_test28: Negative Tests Update the partition key to an out of dml_union_range value with no default partition
620620
begin;
621621
DROP TABLE dml_union_s_1_prt_def;
622+
-- GPDB_12_MERGE_FIXME: This test case is flaky, ERROR: expected partdefid 134733, but got 0 (partdesc.c:194)
623+
set optimizer=off;
622624
SELECT COUNT(DISTINCT(d)) FROM dml_union_s;
623625
UPDATE dml_union_s SET d = (SELECT NULL EXCEPT SELECT NULL)::numeric;
624626
--SELECT DISTINCT(d) FROM dml_union_s;
625627
--SELECT COUNT(DISTINCT(d)) FROM dml_union_s;
626628
rollback;
629+
reset optimizer;
627630

628631
-- @description union_update_test29: Negative Tests UPDATE violates the CHECK constraint on the column
629-
-- GPDB_12_MERGE_FIXME: This test case is flaky, ERROR: expected partdefid 134733, but got 0 (partdesc.c:194)
630-
set optimizer=off;
631632
SELECT COUNT(DISTINCT(b)) FROM dml_union_s;
632633
UPDATE dml_union_s SET b = (SELECT NULL UNION SELECT NULL)::numeric;
633-
reset optimizer;
634634
--SELECT COUNT(DISTINCT(b)) FROM dml_union_s;
635635
--SELECT DISTINCT(b) FROM dml_union_s;
636636

0 commit comments

Comments
 (0)