repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/json/reader.go | internal/util/importutilv2/json/reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/json/reader_test.go | internal/util/importutilv2/json/reader_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/json/row_parser.go | internal/util/importutilv2/json/row_parser.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/json/row_parser_test.go | internal/util/importutilv2/json/row_parser_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/common/mock_reader.go | internal/util/importutilv2/common/mock_reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/common/retryable_reader_test.go | internal/util/importutilv2/common/retryable_reader_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/common/util.go | internal/util/importutilv2/common/util.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/common/retryable_reader.go | internal/util/importutilv2/common/retryable_reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/common/util_test.go | internal/util/importutilv2/common/util_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/binlog/l0_reader.go | internal/util/importutilv2/binlog/l0_reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/binlog/l0_reader_test.go | internal/util/importutilv2/binlog/l0_reader_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/binlog/filter.go | internal/util/importutilv2/binlog/filter.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/binlog/reader.go | internal/util/importutilv2/binlog/reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/binlog/util.go | internal/util/importutilv2/binlog/util.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/binlog/reader_test.go | internal/util/importutilv2/binlog/reader_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/numpy/field_reader.go | internal/util/importutilv2/numpy/field_reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/numpy/reader.go | internal/util/importutilv2/numpy/reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/numpy/util.go | internal/util/importutilv2/numpy/util.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/numpy/reader_test.go | internal/util/importutilv2/numpy/reader_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/numpy/field_reader_test.go | internal/util/importutilv2/numpy/field_reader_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/csv/reader.go | internal/util/importutilv2/csv/reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/csv/reader_test.go | internal/util/importutilv2/csv/reader_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/csv/row_parser.go | internal/util/importutilv2/csv/row_parser.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/csv/row_parser_test.go | internal/util/importutilv2/csv/row_parser_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/parquet/field_reader.go | internal/util/importutilv2/parquet/field_reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | true |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/parquet/reader.go | internal/util/importutilv2/parquet/reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/parquet/util.go | internal/util/importutilv2/parquet/util.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/parquet/reader_test.go | internal/util/importutilv2/parquet/reader_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/parquet/field_reader_test.go | internal/util/importutilv2/parquet/field_reader_test.go | package parquet
import (
"context"
"fmt"
"math/rand"
"os"
"strings"
"testing"
"github.com/apache/arrow/go/v17/arrow"
"github.com/apache/arrow/go/v17/arrow/array"
"github.com/apache/arrow/go/v17/arrow/memory"
"github.com/apache/arrow/go/v17/parquet"
"github.com/apache/arrow/go/v17/parquet/file"
"github.com... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/importutilv2/parquet/struct_field_reader.go | internal/util/importutilv2/parquet/struct_field_reader.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/stl_sort_checker_test.go | internal/util/indexparamcheck/stl_sort_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
func Test_STLSORTIndexChecker(t *testing.T) {
c := newSTLSORTChecker()
assert.NoError(t, c.CheckTrain(schemapb.DataType_Int64, schemapb.DataType_None, map[string]string{}))
... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/bin_flat_checker_test.go | internal/util/indexparamcheck/bin_flat_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_binFlatChecker_CheckTrain(t *testing.T) {
validParams := ma... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/hybrid_index_checker.go | internal/util/indexparamcheck/hybrid_index_checker.go | package indexparamcheck
import (
"fmt"
"github.com/cockroachdb/errors"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/typeutil"
)
type HYBRIDChecker struct {
scalarIndexChecker
}
func (c *HYBRIDChecker) CheckTrain(da... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/trie_checker_test.go | internal/util/indexparamcheck/trie_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
func Test_TrieIndexChecker(t *testing.T) {
c := newTRIEChecker()
assert.NoError(t, c.CheckTrain(schemapb.DataType_VarChar, schemapb.DataType_None, map[string]string{}))
as... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/bitmap_checker_test.go | internal/util/indexparamcheck/bitmap_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
func Test_BitmapIndexChecker(t *testing.T) {
c := newBITMAPChecker()
assert.NoError(t, c.CheckValidDataType(IndexBitmap, &schemapb.FieldSchema{DataType: schemapb.DataType_Bo... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/index_type.go | internal/util/indexparamcheck/index_type.go | // Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/vector_index_checker_test.go | internal/util/indexparamcheck/vector_index_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
func TestVecIndexChecker_StaticCheck(t *testing.T) {
checker := newVecIndexChecker()
tests := []struct {
name string
dataType schemapb.DataType
params map[string... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/hnsw_checker_test.go | internal/util/indexparamcheck/hnsw_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_hnswChecker_CheckTrain(t *testing.T) {
validParams := map[s... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/scann_checker_test.go | internal/util/indexparamcheck/scann_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_scaNNChecker_CheckTrain(t *testing.T) {
validParams := map[... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/inverted_checker.go | internal/util/indexparamcheck/inverted_checker.go | package indexparamcheck
import (
"fmt"
"github.com/samber/lo"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/merr"
"github.com/milvus-io/milvus/pkg/v2/util/typeutil"
)
// INVERTEDChecker checks if a INVERTED index can... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/ivf_sq_checker_test.go | internal/util/indexparamcheck/ivf_sq_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_ivfSQChecker_CheckTrain(t *testing.T) {
getValidParams := f... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/flat_checker_test.go | internal/util/indexparamcheck/flat_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_flatChecker_CheckTrain(t *testing.T) {
p1 := map[string]str... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/base_checker_test.go | internal/util/indexparamcheck/base_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_baseChecker_CheckTrain(t *testing.T) {
validParams := map[s... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/inverted_checker_test.go | internal/util/indexparamcheck/inverted_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
func Test_INVERTEDIndexChecker(t *testing.T) {
c := newINVERTEDChecker()
assert.NoError(t, c.CheckTrain(schemapb.DataType_Bool, schemapb.DataType_None, map[string]string{}))... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/trie_checker.go | internal/util/indexparamcheck/trie_checker.go | package indexparamcheck
import (
"github.com/cockroachdb/errors"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/util/typeutil"
)
// TRIEChecker checks if a TRIE index can be built.
type TRIEChecker struct {
scalarIndexChecker
}
func (c *TRIEChecker) CheckTrain(dataTyp... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/utils.go | internal/util/indexparamcheck/utils.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/raft_ivf_flat_checker_test.go | internal/util/indexparamcheck/raft_ivf_flat_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/log"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_raftIvfFlatChecker... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/float_vector_base_checker_test.go | internal/util/indexparamcheck/float_vector_base_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
func Test_floatVectorBaseChecker_CheckValidDataType(t *testing.T) {
cases := []struct {
dType schemapb.DataType
errIsNil bool
}{
{
dType: schemapb.DataType_Boo... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/ngram_index_checker.go | internal/util/indexparamcheck/ngram_index_checker.go | package indexparamcheck
import (
"fmt"
"strconv"
"strings"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/merr"
"github.com/milvus-io/milvus/pkg/v2/util/typeutil"
)
const (
MinGramKey = "min_gram"
MaxGramKey = "max_... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/diskann_checker_test.go | internal/util/indexparamcheck/diskann_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_diskannChecker_CheckTrain(t *testing.T) {
validParams := ma... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/index_checker_test.go | internal/util/indexparamcheck/index_checker_test.go | // Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/conf_adapter_mgr_test.go | internal/util/indexparamcheck/conf_adapter_mgr_test.go | // Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/rtree_checker.go | internal/util/indexparamcheck/rtree_checker.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/stl_sort_checker.go | internal/util/indexparamcheck/stl_sort_checker.go | package indexparamcheck
import (
"fmt"
"github.com/cockroachdb/errors"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/util/typeutil"
)
// STLSORTChecker checks if a STL_SORT index can be built.
type STLSORTChecker struct {
scalarIndexChecker
}
func (c *STLSORTChecke... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/hybrid_checker_test.go | internal/util/indexparamcheck/hybrid_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
func Test_HybridIndexChecker(t *testing.T) {
c := newHYBRIDChecker()
assert.NoError(t, c.CheckTrain(schemapb.DataType_Bool, schemapb.DataType_None, map[string]string{"bitmap... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/vector_index_checker.go | internal/util/indexparamcheck/vector_index_checker.go | package indexparamcheck
/*
#cgo pkg-config: milvus_core
#include <stdlib.h> // free
#include "segcore/vector_index_c.h"
*/
import "C"
import (
"fmt"
"math"
"unsafe"
"github.com/cockroachdb/errors"
"google.golang.org/protobuf/proto"
"github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
"github.com/milvus-io... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/utils_test.go | internal/util/indexparamcheck/utils_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/config"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
"github.com/milvus-io/milvu... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/ivf_pq_checker_test.go | internal/util/indexparamcheck/ivf_pq_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_ivfPQChecker_CheckTrain(t *testing.T) {
validParams := map[... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/raft_ivf_pq_checker_test.go | internal/util/indexparamcheck/raft_ivf_pq_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/log"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_raftIVFPQChecker_C... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/bin_ivf_flat_checker_test.go | internal/util/indexparamcheck/bin_ivf_flat_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_binIVFFlatChecker_CheckTrain(t *testing.T) {
validParams :=... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/scalar_index_checker_test.go | internal/util/indexparamcheck/scalar_index_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
func TestCheckIndexValid(t *testing.T) {
scalarIndexChecker := &scalarIndexChecker{}
assert.NoError(t, scalarIndexChecker.CheckTrain(schemapb.DataType_Bool, schemapb.DataType... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/ivf_base_checker_test.go | internal/util/indexparamcheck/ivf_base_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_ivfBaseChecker_CheckTrain(t *testing.T) {
validParams := ma... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/base_checker.go | internal/util/indexparamcheck/base_checker.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/constraints.go | internal/util/indexparamcheck/constraints.go | package indexparamcheck
import (
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
const (
MinNBits = 1
MaxNBits = 16
DefaultNBits = 8
// MinNList is the lower limit of nlist that used in Index IVFxxx
MinNList = 1
// MaxNList is the upper limit of nlist th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/auto_index_checker.go | internal/util/indexparamcheck/auto_index_checker.go | package indexparamcheck
import (
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
// AUTOINDEXChecker checks if a TRIE index can be built.
type AUTOINDEXChecker struct {
baseChecker
}
func (c *AUTOINDEXChecker) CheckTrain(dataType schemapb.DataType, elementType schemapb.DataType, params map[string]string) ... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/index_checker.go | internal/util/indexparamcheck/index_checker.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/bitmap_index_checker.go | internal/util/indexparamcheck/bitmap_index_checker.go | package indexparamcheck
import (
"github.com/cockroachdb/errors"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/util/typeutil"
)
type BITMAPChecker struct {
scalarIndexChecker
}
func (c *BITMAPChecker) CheckTrain(dataType schemapb.DataType, elementType schemapb.DataTy... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/sparse_float_vector_base_checker_test.go | internal/util/indexparamcheck/sparse_float_vector_base_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
)
func Test_sparseFloatVectorBaseChecker_StaticCheck(t *testing.T) {
validParams := map[string]string{
common.IndexTypeKey: "SPARS... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/conf_adapter_mgr.go | internal/util/indexparamcheck/conf_adapter_mgr.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/binary_vector_base_checker_test.go | internal/util/indexparamcheck/binary_vector_base_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
func Test_binaryVectorBaseChecker_CheckValidDataType(t *testing.T) {
cases := []struct {
dType schemapb.DataType
errIsNil bool
}{
{
dType: schemapb.DataType_Bo... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/cagra_checker_test.go | internal/util/indexparamcheck/cagra_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/log"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_cagraChecker_CheckTrain(t *testing.T) {
p1 := map[string]strin... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/raft_brute_force_checker_test.go | internal/util/indexparamcheck/raft_brute_force_checker_test.go | package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/log"
"github.com/milvus-io/milvus/pkg/v2/util/metric"
)
func Test_raftbfChecker_Chec... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/index_type_test.go | internal/util/indexparamcheck/index_type_test.go | /*
* Licensed to the LF AI & Data foundation under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/rtree_checker_test.go | internal/util/indexparamcheck/rtree_checker_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/scalar_index_checker.go | internal/util/indexparamcheck/scalar_index_checker.go | package indexparamcheck
import "github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
type scalarIndexChecker struct {
baseChecker
}
func (c scalarIndexChecker) CheckTrain(dataType schemapb.DataType, _ schemapb.DataType, params map[string]string) error {
return nil
}
| go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/indexparamcheck/ngram_index_checker_test.go | internal/util/indexparamcheck/ngram_index_checker_test.go | package indexparamcheck
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/common"
)
func Test_NgramIndexChecker_CheckTrain(t *testing.T) {
checker := newNgramIndexChecker()
t.Run("valid ngram on varchar", func(t ... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/metrics/thread_test.go | internal/util/metrics/thread_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/metrics/milvus_registry.go | internal/util/metrics/milvus_registry.go | /*
* # Licensed to the LF AI & Data foundation under one
* # or more contributor license agreements. See the NOTICE file
* # distributed with this work for additional information
* # regarding copyright ownership. The ASF licenses this file
* # to you under the Apache License, Version 2.0 (the
* # "License"); you... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/metrics/utils.go | internal/util/metrics/utils.go | package metrics
import (
"strconv"
"github.com/samber/lo"
"github.com/milvus-io/milvus/pkg/v2/proto/datapb"
"github.com/milvus-io/milvus/pkg/v2/util/metricsinfo"
)
func NewSegmentFrom(segment *datapb.SegmentInfo) *metricsinfo.Segment {
return &metricsinfo.Segment{
SegmentID: segment.GetID(),
CollectionI... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/metrics/holmes_darwin.go | internal/util/metrics/holmes_darwin.go | //go:build darwin
// +build darwin
/*
* # Licensed to the LF AI & Data foundation under one
* # or more contributor license agreements. See the NOTICE file
* # distributed with this work for additional information
* # regarding copyright ownership. The ASF licenses this file
* # to you under the Apache License, V... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/metrics/holmes.go | internal/util/metrics/holmes.go | //go:build !darwin
// +build !darwin
/*
* # Licensed to the LF AI & Data foundation under one
* # or more contributor license agreements. See the NOTICE file
* # distributed with this work for additional information
* # regarding copyright ownership. The ASF licenses this file
* # to you under the Apache License,... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/metrics/c_registry.go | internal/util/metrics/c_registry.go | /*
* # Licensed to the LF AI & Data foundation under one
* # or more contributor license agreements. See the NOTICE file
* # distributed with this work for additional information
* # regarding copyright ownership. The ASF licenses this file
* # to you under the Apache License, Version 2.0 (the
* # "License"); you... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/metrics/thread.go | internal/util/metrics/thread.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/reduce/reduce_info.go | internal/util/reduce/reduce_info.go | package reduce
import (
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
type ResultInfo struct {
nq int64
topK int64
metricType string
pkType schemapb.DataType
offset int64
groupByFieldId int64
groupSize int64
isAdvance bool
}
func NewReduceSearch... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/dependency/mock_factory.go | internal/util/dependency/mock_factory.go | // Code generated by mockery v2.53.3. DO NOT EDIT.
package dependency
import (
context "context"
msgstream "github.com/milvus-io/milvus/pkg/v2/mq/msgstream"
mock "github.com/stretchr/testify/mock"
paramtable "github.com/milvus-io/milvus/pkg/v2/util/paramtable"
storage "github.com/milvus-io/milvus/internal/sto... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/dependency/factory_test.go | internal/util/dependency/factory_test.go | package dependency
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus/pkg/v2/util/paramtable"
)
func TestValidateMQType(t *testing.T) {
assert.Error(t, validateMQType(true, mqTypeDefault))
assert.Error(t, validateMQType(false, mqTypeDefault))
assert.Error(t, validateMQType(fa... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/dependency/factory.go | internal/util/dependency/factory.go | package dependency
import (
"context"
"github.com/cockroachdb/errors"
"go.uber.org/zap"
"github.com/milvus-io/milvus/internal/storage"
"github.com/milvus-io/milvus/pkg/v2/common"
"github.com/milvus-io/milvus/pkg/v2/log"
"github.com/milvus-io/milvus/pkg/v2/metrics"
"github.com/milvus-io/milvus/pkg/v2/mq/msgst... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/dependency/kv/kv_client_handler.go | internal/util/dependency/kv/kv_client_handler.go | package kvfactory
import (
"fmt"
"sync"
clientv3 "go.etcd.io/etcd/client/v3"
"github.com/milvus-io/milvus/pkg/v2/util/etcd"
"github.com/milvus-io/milvus/pkg/v2/util/paramtable"
)
var clientCreator = &etcdClientCreator{}
var getEtcdAndPathFunction = getEtcdAndPath
type etcdClientCreator struct {
mu syn... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/streamrpc/in_memory_streamer_test.go | internal/util/streamrpc/in_memory_streamer_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/streamrpc/streamer_test.go | internal/util/streamrpc/streamer_test.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/streamrpc/mock_grpc_client_stream.go | internal/util/streamrpc/mock_grpc_client_stream.go | // Code generated by mockery v2.32.4. DO NOT EDIT.
package streamrpc
import (
context "context"
metadata "google.golang.org/grpc/metadata"
mock "github.com/stretchr/testify/mock"
)
// MockClientStream is an autogenerated mock type for the ClientStream type
type MockClientStream struct {
mock.Mock
}
type MockC... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/streamrpc/in_memory_streamer.go | internal/util/streamrpc/in_memory_streamer.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/streamrpc/streamer.go | internal/util/streamrpc/streamer.go | package streamrpc
import (
"context"
"io"
"sync"
"google.golang.org/grpc"
"google.golang.org/protobuf/proto"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/v2/proto/internalpb"
"github.com/milvus-io/milvus/pkg/v2/util/merr"
)
type QueryStreamServer interface {
Send(... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/idalloc/mallocator.go | internal/util/idalloc/mallocator.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/idalloc/basic_allocator_test.go | internal/util/idalloc/basic_allocator_test.go | package idalloc
import (
"context"
"testing"
"github.com/cockroachdb/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"go.uber.org/atomic"
"google.golang.org/grpc"
"github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
"github.com/milvus-io/milvus/internal/mocks"
"github.com/... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/idalloc/allocator_test.go | internal/util/idalloc/allocator_test.go | package idalloc
import (
"context"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"google.golang.org/grpc"
"github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
"github.com/milvus-io/milvus/internal/types"
"github.com/milvus-io/milvus/pkg/v2/proto/rootcoordpb"
"gi... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/idalloc/allocator.go | internal/util/idalloc/allocator.go | // Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/idalloc/test_mock_root_coord_client.go | internal/util/idalloc/test_mock_root_coord_client.go | //go:build test
// +build test
package idalloc
import (
"context"
"fmt"
"testing"
"time"
"github.com/stretchr/testify/mock"
"go.uber.org/atomic"
"google.golang.org/grpc"
"github.com/milvus-io/milvus/internal/mocks"
"github.com/milvus-io/milvus/pkg/v2/proto/rootcoordpb"
"github.com/milvus-io/milvus/pkg/v2/... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/idalloc/basic_allocator.go | internal/util/idalloc/basic_allocator.go | package idalloc
import (
"context"
"fmt"
"time"
"github.com/cockroachdb/errors"
"github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
"github.com/milvus-io/milvus/internal/types"
"github.com/milvus-io/milvus/pkg/v2/proto/rootcoordpb"
"github.com/milvus-io/milvus/pkg/v2/util/commonpbutil"
"github.com/milvus... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
milvus-io/milvus | https://github.com/milvus-io/milvus/blob/9d9fe2273adea818132bd2c5b9710bdecc8c8a85/internal/util/analyzer/analyzer.go | internal/util/analyzer/analyzer.go | package analyzer
import (
"github.com/milvus-io/milvus/internal/util/analyzer/canalyzer"
"github.com/milvus-io/milvus/internal/util/analyzer/interfaces"
"github.com/milvus-io/milvus/pkg/v2/proto/internalpb"
)
type (
Analyzer interfaces.Analyzer
TokenStream interfaces.TokenStream
)
func NewAnalyzer(param stri... | go | Apache-2.0 | 9d9fe2273adea818132bd2c5b9710bdecc8c8a85 | 2026-01-07T08:35:46.736408Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.