mirror of https://github.com/milvus-io/milvus.git
fix: error message when input is not aligned (#35322)
fix: https://github.com/milvus-io/milvus/issues/35321 Signed-off-by: longjiquan <jiquan.long@zilliz.com>pull/35326/head^2
parent
c19fe95154
commit
f13b21c041
|
@ -137,7 +137,7 @@ func (v *validateUtil) Validate(data []*schemapb.FieldData, schema *schemapb.Col
|
|||
func (v *validateUtil) checkAligned(data []*schemapb.FieldData, schema *typeutil.SchemaHelper, numRows uint64) error {
|
||||
errNumRowsMismatch := func(fieldName string, fieldNumRows uint64) error {
|
||||
msg := fmt.Sprintf("the num_rows (%d) of field (%s) is not equal to passed num_rows (%d)", fieldNumRows, fieldName, numRows)
|
||||
return merr.WrapErrParameterInvalid(fieldNumRows, numRows, msg)
|
||||
return merr.WrapErrParameterInvalid(numRows, fieldNumRows, msg)
|
||||
}
|
||||
errDimMismatch := func(fieldName string, dataDim int64, schemaDim int64) error {
|
||||
msg := fmt.Sprintf("the dim (%d) of field data(%s) is not equal to schema dim (%d)", dataDim, fieldName, schemaDim)
|
||||
|
|
Loading…
Reference in New Issue