fix: Pass full field list when partial load enabled ()

Related to 

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/37067/head
congqixia 2024-10-22 18:43:27 +08:00 committed by GitHub
parent 5a1f752272
commit 0d8f20f7ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions
internal/querynodev2/segments

View File

@ -236,10 +236,6 @@ func NewCollection(collectionID int64, schema *schemapb.CollectionSchema, indexM
// otherwise use all fields for backward compatibility
if len(loadMetaInfo.GetLoadFields()) > 0 {
loadFieldIDs = typeutil.NewSet(loadMetaInfo.GetLoadFields()...)
loadSchema.Fields = lo.Filter(loadSchema.GetFields(), func(field *schemapb.FieldSchema, _ int) bool {
// system field shall always be loaded for now
return loadFieldIDs.Contain(field.GetFieldID()) || common.IsSystemField(field.GetFieldID())
})
} else {
loadFieldIDs = typeutil.NewSet(lo.Map(loadSchema.GetFields(), func(field *schemapb.FieldSchema, _ int) int64 { return field.GetFieldID() })...)
}