mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 10:59:32 +08:00
Fix a bug of bulkload (#17620)
Signed-off-by: groot <yihua.mo@zilliz.com>
This commit is contained in:
parent
d69a41f63d
commit
371a44f018
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user