This is an automated email from the ASF dual-hosted git repository.

avamingli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 9f6fc6ab0e2ea80274fd0c7190b1ae60aca91b63
Author: Michael Paquier <[email protected]>
AuthorDate: Mon Jun 12 12:19:46 2023 +0900

    Fix instability in regression test for Parallel Hash Full Join
    
    As reported by buildfarm member conchuela, one of the regression tests
    added by 558c9d7 is having some ordering issues.  This commit adds an
    ORDER BY clause to make the output more stable for the problematic
    query.
    
    Fix suggested by Tom Lane.  The plan of the query updated still uses a
    parallel hash full join.
    
    Author: Melanie Plageman
    Discussion: https://postgr.es/m/[email protected]
---
 src/test/regress/expected/join_hash.out | 3 ++-
 src/test/regress/sql/join_hash.sql      | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/test/regress/expected/join_hash.out 
b/src/test/regress/expected/join_hash.out
index b1f780ff7b8..28f4558ec04 100644
--- a/src/test/regress/expected/join_hash.out
+++ b/src/test/regress/expected/join_hash.out
@@ -1047,7 +1047,8 @@ INSERT INTO hjtest_matchbits_t2 VALUES (2);
 -- Update should create a HOT tuple. If this status bit isn't cleared, we won't
 -- correctly emit the NULL-extended unmatching tuple in full hash join.
 UPDATE hjtest_matchbits_t2 set id = 2;
-SELECT * FROM hjtest_matchbits_t1 t1 FULL JOIN hjtest_matchbits_t2 t2 ON t1.id 
= t2.id;
+SELECT * FROM hjtest_matchbits_t1 t1 FULL JOIN hjtest_matchbits_t2 t2 ON t1.id 
= t2.id
+  ORDER BY t1.id;
  id | id 
 ----+----
   1 |   
diff --git a/src/test/regress/sql/join_hash.sql 
b/src/test/regress/sql/join_hash.sql
index 0858e14040f..0115489a6b9 100644
--- a/src/test/regress/sql/join_hash.sql
+++ b/src/test/regress/sql/join_hash.sql
@@ -555,7 +555,8 @@ INSERT INTO hjtest_matchbits_t2 VALUES (2);
 -- Update should create a HOT tuple. If this status bit isn't cleared, we won't
 -- correctly emit the NULL-extended unmatching tuple in full hash join.
 UPDATE hjtest_matchbits_t2 set id = 2;
-SELECT * FROM hjtest_matchbits_t1 t1 FULL JOIN hjtest_matchbits_t2 t2 ON t1.id 
= t2.id;
+SELECT * FROM hjtest_matchbits_t1 t1 FULL JOIN hjtest_matchbits_t2 t2 ON t1.id 
= t2.id
+  ORDER BY t1.id;
 -- Test serial full hash join.
 -- Resetting parallel_setup_cost should force a serial plan.
 -- Just to be safe, however, set enable_parallel_hash to off, as parallel full


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to