Skip to content

Commit

Permalink
enhance: Return segment id hint in QueryStream response (#36487)
Browse files Browse the repository at this point in the history
Related to #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 authored Sep 26, 2024
1 parent 9e8cafc commit 4fd9b0a
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 4fd9b0a

Please sign in to comment.