From dce4456371bf27b44d5aad16df9d28c8b48ef660 Mon Sep 17 00:00:00 2001 From: PGross Date: Mon, 25 Mar 2024 17:19:29 +0100 Subject: [PATCH] bugfix --- src/execution/join_hashtable.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/execution/join_hashtable.cpp b/src/execution/join_hashtable.cpp index 82f2fd9d8928..a0c95f846933 100644 --- a/src/execution/join_hashtable.cpp +++ b/src/execution/join_hashtable.cpp @@ -242,7 +242,9 @@ void JoinHashTable::GetRowPointers(DataChunk &keys, TupleDataChunkState &key_sta state.salt_match_sel.set_index(salt_match_count, row_index); salt_match_count += occupied; - row_ptr_insert_to[row_index] = entry.GetPointer(); + // entry might be empty, so the pointer in the entry is nullptr, but this does not matter as the row + // will not be compared anyway as with an empty entry we are already done + row_ptr_insert_to[row_index] = entry.GetPointerOrNull(); } if (salt_match_count == 0) {