未验证 提交 792dba4a 编写于 作者: Y yukun 提交者: GitHub

Fix id field insert failed when auto_id is true (#5984)

Signed-off-by: Nfishpenguin <kun.yu@zilliz.com>
上级 14653846
......@@ -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{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册