Skip to content

Commit fb36fa6

Browse files
authored
fix: [AddField] Fill default value in get_field_schema (#2768)
Related to milvus-io/milvus#39718 This PR fixes the issue that default value in input dict is not convert to result FieldSchema.default_value. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
1 parent ee3726a commit fb36fa6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymilvus/client/prepare.py

+1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ def get_field_schema(
219219
is_partition_key=field.get("is_partition_key", False),
220220
is_clustering_key=field.get("is_clustering_key", False),
221221
nullable=nullable,
222+
default_value=field.get("default_value"),
222223
)
223224

224225
type_params = field.get("params", {})

0 commit comments

Comments
 (0)