Skip to content

Commit

Permalink
Fixbug: should fill empty dict when using dynamic field
Browse files Browse the repository at this point in the history
Signed-off-by: zhenshan.cao <[email protected]>
  • Loading branch information
czs007 committed Aug 7, 2023
1 parent 5870e5e commit a238129
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 a238129

Please sign in to comment.