mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix id field insert failed when auto_id is true (#5984)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
parent
14653846ba
commit
792dba4ae3
@ -450,7 +450,6 @@ func (it *InsertTask) checkFieldAutoID() error {
|
||||
autoIDFieldName := ""
|
||||
autoIDLoc := -1
|
||||
primaryLoc := -1
|
||||
var fieldType schemapb.DataType
|
||||
fields := it.schema.Fields
|
||||
|
||||
for loc, field := range fields {
|
||||
@ -520,7 +519,7 @@ func (it *InsertTask) checkFieldAutoID() error {
|
||||
if autoIDLoc >= 0 {
|
||||
fieldData := schemapb.FieldData{
|
||||
FieldName: primaryFieldName,
|
||||
Type: fieldType,
|
||||
Type: schemapb.DataType_Int64,
|
||||
Field: &schemapb.FieldData_Scalars{
|
||||
Scalars: &schemapb.ScalarField{
|
||||
Data: &schemapb.ScalarField_LongData{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user