Skip to content

fix: update offset2id when deleting in subindex#496

Merged
JohannesMessner merged 2 commits intomainfrom
fix-update-subindex
Aug 23, 2022
Merged

fix: update offset2id when deleting in subindex#496
JohannesMessner merged 2 commits intomainfrom
fix-update-subindex

Conversation

@JohannesMessner
Copy link
Copy Markdown
Member

@JohannesMessner JohannesMessner commented Aug 22, 2022

Goals:

make sure that offset2ids is correctly updated when deleting in a subindex.
Previously, the call to del_docs_by_ids() did not do it, but using del does it under the hood.

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 22, 2022

Codecov Report

Merging #496 (c68e760) into main (c936b18) will decrease coverage by 1.02%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##             main     #496      +/-   ##
==========================================
- Coverage   86.51%   85.49%   -1.03%     
==========================================
  Files         134      134              
  Lines        6698     6702       +4     
==========================================
- Hits         5795     5730      -65     
- Misses        903      972      +69     
Flag Coverage Δ
docarray 85.49% <33.33%> (-1.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/document/mixins/video.py 53.12% <14.28%> (-3.55%) ⬇️
docarray/__init__.py 75.00% <100.00%> (ø)
docarray/array/storage/base/getsetdel.py 91.21% <100.00%> (ø)
docarray/array/storage/elastic/find.py 56.89% <0.00%> (-34.49%) ⬇️
docarray/array/storage/weaviate/find.py 58.22% <0.00%> (-20.26%) ⬇️
docarray/array/storage/annlite/find.py 80.00% <0.00%> (-13.34%) ⬇️
docarray/array/storage/elastic/seqlike.py 84.00% <0.00%> (-10.00%) ⬇️
docarray/array/mixins/find.py 78.35% <0.00%> (-9.28%) ⬇️
docarray/array/storage/elastic/getsetdel.py 96.61% <0.00%> (-3.39%) ⬇️
docarray/array/storage/elastic/backend.py 93.38% <0.00%> (-2.21%) ⬇️
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@JohannesMessner
Copy link
Copy Markdown
Member Author

@AnneYang720 this is a PR for your suggestion, thanks!

@JohannesMessner JohannesMessner marked this pull request as ready for review August 23, 2022 08:43
@JohannesMessner JohannesMessner merged commit cb066d8 into main Aug 23, 2022
@JohannesMessner JohannesMessner deleted the fix-update-subindex branch August 23, 2022 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants