enhance: Set default index name as field name (#29218)

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
pull/29233/head
cai.zhang 2023-12-15 12:06:39 +08:00 committed by GitHub
parent 4731c1b0d5
commit 2f7252b44e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ package proxy
import (
"context"
"fmt"
"strconv"
"github.com/cockroachdb/errors"
"go.uber.org/zap"
@ -399,7 +398,7 @@ func (cit *createIndexTask) Execute(ctx context.Context) error {
)
if cit.req.GetIndexName() == "" {
cit.req.IndexName = Params.CommonCfg.DefaultIndexName.GetValue() + "_" + strconv.FormatInt(cit.fieldSchema.GetFieldID(), 10)
cit.req.IndexName = cit.fieldSchema.GetName()
}
var err error
req := &indexpb.CreateIndexRequest{