Delete dup check (#23076)

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
pull/22942/head
smellthemoon 2023-03-29 10:06:01 +08:00 committed by GitHub
parent dc6d4b913a
commit b1992e84cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 14 deletions

View File

@ -160,13 +160,6 @@ func (it *insertTask) PreExecute(ctx context.Context) error {
return err return err
} }
// check that all field's number rows are equal
if err = it.insertMsg.CheckAligned(); err != nil {
log.Error("field data is not aligned",
zap.Error(err))
return err
}
if err := newValidateUtil(withNANCheck()).Validate(it.insertMsg.GetFieldsData(), schema, it.insertMsg.NRows()); err != nil { if err := newValidateUtil(withNANCheck()).Validate(it.insertMsg.GetFieldsData(), schema, it.insertMsg.NRows()); err != nil {
return err return err
} }

View File

@ -185,13 +185,6 @@ func (it *upsertTask) insertPreExecute(ctx context.Context) error {
return err return err
} }
// check that all field's number rows are equal
if err = it.upsertMsg.InsertMsg.CheckAligned(); err != nil {
log.Error("field data is not aligned when upsert",
zap.Error(err))
return err
}
if err := newValidateUtil(withNANCheck()). if err := newValidateUtil(withNANCheck()).
Validate(it.upsertMsg.InsertMsg.GetFieldsData(), it.schema, it.upsertMsg.InsertMsg.NRows()); err != nil { Validate(it.upsertMsg.InsertMsg.GetFieldsData(), it.schema, it.upsertMsg.InsertMsg.NRows()); err != nil {
return err return err