Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: gengliqi <gengliqiii@gmail.com>
  • Loading branch information
gengliqi committed Oct 23, 2023
1 parent 09fa6e3 commit 9e27d1e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/executor/hash_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,10 @@ const rowPtrSize = int64(unsafe.Sizeof(chunk.RowPtr{}))
// h and buf.
func (c *hashRowContainer) GetMatchedRowsAndPtrs(probeKey uint64, probeRow chunk.Row, hCtx *hashContext, matched []chunk.Row, matchedPtrs []chunk.RowPtr, needPtr bool) ([]chunk.Row, []chunk.RowPtr, error) {
var err error
innerEntry := c.hashTable.Get(probeKey)
entry := c.hashTable.Get(probeKey)
var innerPtrs []chunk.RowPtr
for innerEntry != nil {
innerPtrs = append(innerPtrs, innerEntry.ptr)
innerEntry = innerEntry.next
for ; entry != nil; entry = entry.next {
innerPtrs = append(innerPtrs, entry.ptr)
}
if len(innerPtrs) == 0 {
return nil, nil, err
Expand Down

0 comments on commit 9e27d1e

Please sign in to comment.