Skip to content

Commit

Permalink
Fixbug: should fill empty dict when using dynamic field (#1642)
Browse files Browse the repository at this point in the history
Signed-off-by: zhenshan.cao <[email protected]>
  • Loading branch information
czs007 authored Aug 7, 2023
1 parent 5870e5e commit be4b80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymilvus/client/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def _parse_row_request(
k: v for k, v in entity.items() if k not in fields_data and enable_dynamic
}

if enable_dynamic and len(json_dict) > 0:
if enable_dynamic:
json_value = entity_helper.convert_to_json(json_dict)
meta_field.scalars.json_data.data.append(json_value)

Expand Down

0 comments on commit be4b80d

Please sign in to comment.