未验证 提交 8b9e3f11 编写于 作者: X xige-16 提交者: GitHub

Fix max_length check (#25207)

Signed-off-by: Nxige-16 <xi.ge@zilliz.com>
上级 b30517d3
......@@ -295,7 +295,7 @@ func validateMaxLengthPerRow(collectionName string, field *schemapb.FieldSchema)
exist := false
for _, param := range field.TypeParams {
if param.Key != common.MaxLengthKey {
return fmt.Errorf("type param key(max_length) should be specified for varChar field, not %s", param.Key)
continue
}
maxLengthPerRow, err := strconv.ParseInt(param.Value, 10, 64)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册