-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fixes for group-by #1938
Fixes for group-by #1938
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
I do not see any logical issues. Added some Rust idiomaticness comments. Approved anyway as these are not required.
lib/segment/src/index/query_optimization/condition_converter.rs
Outdated
Show resolved
Hide resolved
lib/segment/src/index/query_optimization/condition_converter.rs
Outdated
Show resolved
Hide resolved
lib/segment/src/index/query_optimization/condition_converter.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did have a possible logic issue, see this. I'll re-approved once this is fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great fix to add the except match. Though can it be that the estimation for must_not
can be improved in the future?
Meant to request the change of except_on and match_on
@timvisee requested changes are fixed now 👍 |
Co-authored-by: Tim Visée <tim+github@visee.me>
Co-authored-by: Tim Visée <tim+github@visee.me>
Co-authored-by: Tim Visée <tim+github@visee.me>
Co-authored-by: Tim Visée <tim+github@visee.me>
Co-authored-by: Tim Visée <tim+github@visee.me>
Co-authored-by: Tim Visée <tim+github@visee.me>
Co-authored-by: Tim Visée <tim+github@visee.me>
Co-authored-by: Tim Visée <tim+github@visee.me>
Co-authored-by: Tim Visée <tim+github@visee.me>
Co-authored-by: Arnaud Gourlay <arnaud.gourlay@gmail.com>
Co-authored-by: Arnaud Gourlay <arnaud.gourlay@gmail.com>
Co-authored-by: Luis Cossío <luis.cossio@qdrant.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 😄
* fix payload seletor * clippy * except cardinality estimation * implement match except iterator and api * use except instead of must-not + test * Fix doc error * Update lib/collection/src/grouping/group_by.rs Co-authored-by: Tim Visée <tim+github@visee.me> * Update lib/segment/src/index/field_index/map_index.rs Co-authored-by: Tim Visée <tim+github@visee.me> * Update lib/segment/src/index/field_index/map_index.rs Co-authored-by: Tim Visée <tim+github@visee.me> * Update lib/segment/src/index/field_index/map_index.rs Co-authored-by: Tim Visée <tim+github@visee.me> * Update lib/segment/src/index/query_optimization/condition_converter.rs Co-authored-by: Tim Visée <tim+github@visee.me> * Update lib/segment/src/index/query_optimization/condition_converter.rs Co-authored-by: Tim Visée <tim+github@visee.me> * Update lib/segment/src/index/query_optimization/condition_converter.rs Co-authored-by: Tim Visée <tim+github@visee.me> * Update lib/segment/src/vector_storage/mod.rs Co-authored-by: Tim Visée <tim+github@visee.me> * Update lib/segment/src/index/field_index/map_index.rs Co-authored-by: Tim Visée <tim+github@visee.me> * Update lib/collection/src/grouping/group_by.rs Co-authored-by: Arnaud Gourlay <arnaud.gourlay@gmail.com> * Update lib/segment/src/index/field_index/map_index.rs Co-authored-by: Arnaud Gourlay <arnaud.gourlay@gmail.com> * Update lib/segment/src/index/field_index/map_index.rs [skip ci] Co-authored-by: Luis Cossío <luis.cossio@qdrant.com> * fix: `except_on` and `match_on` now produce `Vec<Condition>`s * Apply suggestions from code review (lib/segment/src/index/field_index/map_index.rs) * fix: reset review suggestion * Remove unnecessary move * Use Rust idiomatic map_else rather than match-none-false * is-null -> is-empty * de-comment drop_collection --------- Co-authored-by: timvisee <tim@visee.me> Co-authored-by: Tim Visée <tim+github@visee.me> Co-authored-by: Arnaud Gourlay <arnaud.gourlay@gmail.com> Co-authored-by: Luis Cossío <luis.cossio@qdrant.com> Co-authored-by: Luis Cossío <luis.cossio@outlook.com>
Fix for the payload selector:
group_by
shouldadditional
must-not
condition for re-search requests doesn't work with multiple payload values per field. It excludes too muchexcept
match condition, which fixes the problem.except
condition also available outside the groups