Skip to content

Commit

Permalink
enhance: Return segment id hint in QueryStream response
Browse files Browse the repository at this point in the history
Related to milvus-io#36482

This PR reuses `SealedSegmentIDsRetrieved` field in `RetrieveResults`
struct to store segment id hint.

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Sep 25, 2024
1 parent da2d3ce commit a1d7522
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/querynodev2/segments/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ func retrieveOnSegmentsWithStream(ctx context.Context, mgr *Manager, segments []
CostAggregation: &internalpb.CostAggregation{
TotalRelatedDataSize: GetSegmentRelatedDataSize(segment),
},
AllRetrieveCount: result.GetAllRetrieveCount(),
SealedSegmentIDsRetrieved: []int64{segment.ID()},
AllRetrieveCount: result.GetAllRetrieveCount(),
}); err != nil {
errs[i] = err
}
Expand Down

0 comments on commit a1d7522

Please sign in to comment.