Skip to content

Commit 0c0c67a

Browse files
pymilvus-botzhuwenxingXuanYang-cn
authored
[Backport 2.6] fix: struct_validator returns True instead of x to support empty arrays (#3182) (#3183)
Backport of #3182 to `2.6`. Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: zhuwenxing <wenxing.zhu@zilliz.com> Co-authored-by: XuanYang-cn <xuan.yang@zilliz.com>
1 parent 1cac7f4 commit 0c0c67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymilvus/bulk_writer/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@ def struct_validator(x: object, max_cap: int):
181181
for k in x:
182182
if not isinstance(k, dict):
183183
raise MilvusException(message="only accept list of dict for STRUCT type field")
184-
return x
184+
return True

0 commit comments

Comments
 (0)