Skip to content

Commit

Permalink
fix queryIterator question (milvus-io#2316)
Browse files Browse the repository at this point in the history
Signed-off-by: lentitude2tk <[email protected]>
Signed-off-by: NamCaoHai <[email protected]>
  • Loading branch information
lentitude2tk authored and CaoHaiNam committed Nov 7, 2024
1 parent 9e35845 commit b20e842
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymilvus/orm/iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def __seek_to_offset(self):
timeout=self._timeout,
**seek_params,
)
self.__update_cursor(res)
result_index = min(len(res), offset)
self.__update_cursor(res[:result_index])
self._kwargs[OFFSET] = 0

def __init_cp_file_handler(self) -> bool:
Expand Down

0 comments on commit b20e842

Please sign in to comment.