mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
issue: #43072, #43289 - manage the schema version at recovery storage. - update the schema when creating collection or alter schema. - get schema at write buffer based on version. - recover the schema when upgrading from 2.5. --------- Signed-off-by: chyezh <chyezh@outlook.com>
19 lines
344 B
Go
19 lines
344 B
Go
package metacache
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
|
|
)
|
|
|
|
func TestVersionlessSchemaManager(t *testing.T) {
|
|
schema := &schemapb.CollectionSchema{
|
|
Name: "test",
|
|
}
|
|
|
|
manager := newVersionlessSchemaManager(schema)
|
|
assert.Equal(t, schema, manager.GetSchema(0))
|
|
}
|