From 93f6e5c51641a745bc04e591224decbfa14fe448 Mon Sep 17 00:00:00 2001 From: wt Date: Wed, 7 Aug 2024 14:20:21 +0800 Subject: [PATCH] test: verify bitmap cases (#796) Signed-off-by: wangting0128 --- test/testcases/index_test.go | 12 +++++++----- test/testcases/query_test.go | 1 - 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/testcases/index_test.go b/test/testcases/index_test.go index cf592a4d..e05278d3 100644 --- a/test/testcases/index_test.go +++ b/test/testcases/index_test.go @@ -156,7 +156,6 @@ func TestCreateIndexDup(t *testing.T) { // test create scalar index on all scalar field func TestCreateScalarIndex(t *testing.T) { - t.Skip("https://github.com/milvus-io/milvus/issues/34795") ctx := createContext(t, time.Second*common.DefaultTimeout) //connect mc := createMilvusClient(ctx, t) @@ -216,7 +215,6 @@ func TestCreateScalarIndex(t *testing.T) { // test create scalar index on loaded collection func TestCreateIndexOnLoadedCollection(t *testing.T) { - t.Skip("https://github.com/milvus-io/milvus/issues/34404") ctx := createContext(t, time.Second*common.DefaultTimeout) //connect mc := createMilvusClient(ctx, t) @@ -265,6 +263,13 @@ func TestCreateIndexOnLoadedCollection(t *testing.T) { err = mc.LoadCollection(ctx, collName, false) common.CheckErr(t, err, true) + + for _, field := range coll.Schema.Fields { + if supportScalarIndexFieldType(field.DataType) { + _, err := mc.DescribeIndex(ctx, collName, field.Name) + common.CheckErr(t, err, true, "") + } + } } // Trie scalar index only supported on varchar @@ -396,7 +401,6 @@ func TestCreateInvertedScalarIndex(t *testing.T) { // create Bitmap index for all scalar fields func TestCreateBitmapScalarIndex(t *testing.T) { - t.Skip("https://github.com/milvus-io/milvus/issues/34795") ctx := createContext(t, time.Second*common.DefaultTimeout*2) // connect mc := createMilvusClient(ctx, t) @@ -641,7 +645,6 @@ func TestCreateInvertedIndexArrayField(t *testing.T) { } func TestCreateBitmapIndexOnArrayField(t *testing.T) { - t.Skip("https://github.com/milvus-io/milvus/issues/34797") ctx := createContext(t, time.Second*common.DefaultTimeout) // connect mc := createMilvusClient(ctx, t) @@ -857,7 +860,6 @@ func TestCreateIndexWithoutIndexTypeParams(t *testing.T) { // test create default auto index on scalar fields, array and json -> error func TestCreateAutoIndexScalarFields(t *testing.T) { - t.Skip("https://github.com/milvus-io/milvus/issues/34795") ctx := createContext(t, time.Second*common.DefaultTimeout) //connect mc := createMilvusClient(ctx, t) diff --git a/test/testcases/query_test.go b/test/testcases/query_test.go index 4ceaf136..2833fad5 100644 --- a/test/testcases/query_test.go +++ b/test/testcases/query_test.go @@ -769,7 +769,6 @@ func TestQueryCountJsonDynamicExpr(t *testing.T) { // test query with all kinds of array expr func TestQueryArrayFieldExpr(t *testing.T) { - t.Skip("https://github.com/milvus-io/milvus/issues/34797") ctx := createContext(t, time.Second*common.DefaultTimeout) // connect mc := createMilvusClient(ctx, t)