File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ import (
36
36
"github.com/milvus-io/milvus/pkg/v2/util/funcutil"
37
37
"github.com/milvus-io/milvus/pkg/v2/util/merr"
38
38
"github.com/milvus-io/milvus/pkg/v2/util/metric"
39
- "github.com/milvus-io/milvus/pkg/v2/util/typeutil"
40
39
"github.com/milvus-io/milvus/tests/integration"
41
40
)
42
41
@@ -249,12 +248,12 @@ func (s *SearchSuite) run() {
249
248
results := searchResult .GetResults ()
250
249
offset := 0
251
250
// verify group by field corresponds to fVarCharColumn
251
+ gbf := results .GetGroupByFieldValue ().GetScalars ().GetStringData ().GetData ()
252
252
for i := range results .NumQueries {
253
253
k := int (results .Topks [i ])
254
- itr := typeutil .GetDataIterator (results .GroupByFieldValue )
255
254
m := make (map [any ]any , k ) // test if the group by field values are unique
256
255
for j := 0 ; j < k ; j ++ {
257
- gpbVal := itr ( offset + j )
256
+ gpbVal := gbf [ offset + j ]
258
257
s .NotContains (m , gpbVal )
259
258
m [gpbVal ] = struct {}{}
260
259
}
You can’t perform that action at this time.
0 commit comments