mirror of https://github.com/milvus-io/milvus.git
fix: Pass full field list when partial load enabled (#37053)
Related to #37038 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/37067/head
parent
5a1f752272
commit
0d8f20f7ce
internal/querynodev2/segments
|
@ -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() })...)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue