From 371a44f01815de10d25e810e27b1b2a6643b2e1c Mon Sep 17 00:00:00 2001 From: groot Date: Fri, 17 Jun 2022 20:52:11 +0800 Subject: [PATCH] Fix a bug of bulkload (#17620) Signed-off-by: groot --- internal/util/importutil/import_wrapper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/util/importutil/import_wrapper.go b/internal/util/importutil/import_wrapper.go index 7c0c6200f0..3d19250c21 100644 --- a/internal/util/importutil/import_wrapper.go +++ b/internal/util/importutil/import_wrapper.go @@ -512,7 +512,7 @@ func (p *ImportWrapper) splitFieldsData(fieldsData map[storage.FieldID]storage.F rowIDField := fieldsData[common.RowIDField] rowIDFieldArr := rowIDField.(*storage.Int64FieldData) for i := rowIDBegin; i < rowIDEnd; i++ { - rowIDFieldArr.Data = append(rowIDFieldArr.Data, rowIDBegin+i) + rowIDFieldArr.Data = append(rowIDFieldArr.Data, i) } if primaryKey.GetAutoID() { @@ -520,7 +520,7 @@ func (p *ImportWrapper) splitFieldsData(fieldsData map[storage.FieldID]storage.F primaryDataArr := primaryData.(*storage.Int64FieldData) for i := rowIDBegin; i < rowIDEnd; i++ { - primaryDataArr.Data = append(primaryDataArr.Data, rowIDBegin+i) + primaryDataArr.Data = append(primaryDataArr.Data, i) } p.importResult.AutoIds = append(p.importResult.AutoIds, rowIDBegin, rowIDEnd)