Skip to content

Commit

Permalink
Fix fill the string field twice when string index exists (#21852) (#2…
Browse files Browse the repository at this point in the history
…1865)

Signed-off-by: yah01 <yang.cen@zilliz.com>
  • Loading branch information
yah01 committed Jan 30, 2023
1 parent a4a20ee commit cd664ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/querynode/segment.go
Expand Up @@ -552,7 +552,8 @@ func (s *Segment) fillIndexedFieldsData(ctx context.Context, collectionID Unique
for _, fieldData := range result.FieldsData {
// If the vector field doesn't have indexed. Vector data is in memory for
// brute force search. No need to download data from remote.
if !s.hasLoadIndexForIndexedField(fieldData.FieldId) {
if fieldData.GetType() != schemapb.DataType_FloatVector && fieldData.GetType() != schemapb.DataType_BinaryVector ||
!s.hasLoadIndexForIndexedField(fieldData.FieldId) {
continue
}

Expand Down

0 comments on commit cd664ad

Please sign in to comment.