-
Notifications
You must be signed in to change notification settings - Fork 3.7k
fix: [2.6] correct index_has_raw_data logic for fielddata loading (#46117) #46155
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
Conversation
…o#46117) Related to milvus-io#46098 This fix addresses a bug where the segment loader incorrectly determined whether scalar fields have raw data in their indexes, leading to unnecessary field data loading or skipping indexed raw data retrieval. - Build `field_ids` vector that handles both single field and column group cases (when `child_fields_size() > 0`) - Move the mmap setting and index_has_raw_data checks before the skip decision, iterating over the correctly built `field_ids` - Fix the boolean AND logic in both `Load()` and `LoadColumnGroup()` to properly check if ALL fields in the group have raw data in their indexes This bug was hiding the root cause of issue milvus-io#46098, where QueryNode panics when outputting timestamptz data from scalar index with raw data. Signed-off-by: Congqi Xia <[email protected]>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
[ci-v2-notice]
To rerun ci-v2 checks, comment with:
If you have any questions or requests, please contact @zhikunyao. |
|
[INFO] PR Label Summary by Default
Use /refresh-label to update related check and label manually |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.6 #46155 +/- ##
==========================================
+ Coverage 73.58% 76.09% +2.51%
==========================================
Files 1356 1875 +519
Lines 210761 291473 +80712
==========================================
+ Hits 155079 221787 +66708
- Misses 48311 62297 +13986
- Partials 7371 7389 +18
🚀 New features to boost your workflow:
|
|
/lgtm |
|
[INFO] PR Label Summary by Default
Use /refresh-label to update related check and label manually |
Cherry-pick from master
pr: #46117
Related to #46098
This fix addresses a bug where the segment loader incorrectly determined whether scalar fields have raw data in their indexes, leading to unnecessary field data loading or skipping indexed raw data retrieval.
field_idsvector that handles both single field and column group cases (whenchild_fields_size() > 0)field_idsLoad()andLoadColumnGroup()to properly check if ALL fields in the group have raw data in their indexesThis bug was hiding the root cause of issue #46098, where QueryNode panics when outputting timestamptz data from scalar index with raw data.