Change Error Msg When dimension of vector field not exist (#7931)

Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
This commit is contained in:
Xiaofan 2021-09-15 10:01:30 +08:00 committed by GitHub
parent 1eccb1d2c4
commit d0667b58d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1178,7 +1178,7 @@ func (cct *createCollectionTask) PreExecute(ctx context.Context) error {
}
}
if !exist {
return errors.New("dimension is not defined in field type params")
return errors.New("dimension is not defined in field type params, check type param `dim` for vector field")
}
if field.DataType == schemapb.DataType_FloatVector {
if err := ValidateDimension(dim, false); err != nil {