Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing indexing values on set-payload operation #3251

Merged
merged 4 commits into from
Dec 19, 2023

Conversation

generall
Copy link
Member

@generall generall commented Dec 19, 2023

What happened:

  • Payload assign operation was trying to upgrade index no matter is the value was actually present in the index or not. It was considering the non-present value as None (which is incorrect)

Why it broke only in 1.7.x?

  • The change introduced in 8b05c4a was removing point from index before inserting a new one. It was fixing a different issue. But it was made under the assumption that assign will not try to insert non-existing fields.

Current changes are tested manually on the reproducible example, proper integration tests will be introduces in another PR by @KShivendu


Scenario to reproduce:

  • Create a collection with vectors and payload
  • Create payload index
  • Make sure the vectors are indexed as well (non-append-able segments exist)
  • Use set_pyaload with the field, which is NOT index
  • Try to scroll with filter by INDEXED field. The updated point will not be found

@timvisee timvisee merged commit 8d9f560 into dev Dec 19, 2023
17 checks passed
@timvisee timvisee deleted the fix-set-payload-operation branch December 19, 2023 17:10
generall added a commit that referenced this pull request Dec 19, 2023
* fix missing indexing values on set-payload operation

* Update function documentation, use conventional warning

* Don't deep match statements

* test: Update of payload on already indexed payload should work (#3253)

---------

Co-authored-by: timvisee <tim@visee.me>
Co-authored-by: Kumar Shivendu <kshivendu1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants