From e6be590b970d14485655eb7eca981f03555257d5 Mon Sep 17 00:00:00 2001 From: congqixia Date: Tue, 4 Nov 2025 10:15:32 +0800 Subject: [PATCH] enhance: set schema version when creating new collection (#45263) Related to #43028 Initialize the schema version field when creating a new collection instance in QueryNode. The schema version is extracted from loadMetaInfo and assigned to the collection, ensuring proper schema version tracking and consistency across the distributed system. Signed-off-by: Congqi Xia --- internal/querynodev2/segments/collection.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/querynodev2/segments/collection.go b/internal/querynodev2/segments/collection.go index ceeaa89b96..108236c560 100644 --- a/internal/querynodev2/segments/collection.go +++ b/internal/querynodev2/segments/collection.go @@ -331,6 +331,7 @@ func NewCollection(collectionID int64, schema *schemapb.CollectionSchema, indexM dbName: loadMetaInfo.GetDbName(), dbProperties: loadMetaInfo.GetDbProperties(), resourceGroup: loadMetaInfo.GetResourceGroup(), + schemaVersion: loadMetaInfo.GetSchemaVersion(), refCount: atomic.NewUint32(0), isGpuIndex: isGpuIndex, loadFields: loadFieldIDs,