Skip to content

Commit

Permalink
Fixbug: should fill empty dict when using dyanmic field (#1641)
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 7896d05 commit 7222d55
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 @@ -377,7 +377,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 7222d55

Please sign in to comment.