Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1ce4a80

Browse files
committed
Fix NULL handling in multi-batch Parallel Hash Left Join.
NULL keys in left joins were skipped when building batch files. Repair, by making the keep_nulls argument to ExecHashGetHashValue() depend on whether this is a left outer join, as we do in other paths. Bug #15475. Thinko in 1804284. Back-patch to 11. Reported-by: Paul Schaap Diagnosed-by: Andrew Gierth Dicussion: https://postgr.es/m/15475-11a7a783fed72a36%40postgresql.org
1 parent a4634b9 commit 1ce4a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/executor/nodeHashjoin.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ ExecParallelHashJoinPartitionOuter(HashJoinState *hjstate)
13951395
if (ExecHashGetHashValue(hashtable, econtext,
13961396
hjstate->hj_OuterHashKeys,
13971397
true, /* outer tuple */
1398-
false, /* outer join, currently unsupported */
1398+
HJ_FILL_OUTER(hjstate),
13991399
&hashvalue))
14001400
{
14011401
int batchno;

0 commit comments

Comments
 (0)