Skip to content

Commit

Permalink
[cherry-pick]Fix describe miss some params
Browse files Browse the repository at this point in the history
Signed-off-by: lixinguo <[email protected]>
  • Loading branch information
lixinguo committed Oct 18, 2023
1 parent bfbd2f4 commit c999166
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions pymilvus/client/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,11 @@ def dict(self):
"description": self.description,
"type": self.type,
"params": self.params or {},
"is_primary": self.is_primary,
"auto_id": self.auto_id,
"is_partition_key": self.is_partition_key,
"is_dynamic": self.is_dynamic,
}

if self.is_partition_key:
_dict["is_partition_key"] = True
if self.is_dynamic:
_dict["is_dynamic"] = True
if self.auto_id:
_dict["auto_id"] = True
if self.is_primary:
_dict["is_primary"] = self.is_primary
return _dict


Expand Down Expand Up @@ -211,9 +206,8 @@ def dict(self):
"consistency_level": self.consistency_level,
"properties": self.properties,
"num_partitions": self.num_partitions,
"enable_dynamic_field": self.enable_dynamic_field,
}
if self.enable_dynamic_field:
_dict["enable_dynamic_field"] = self.enable_dynamic_field
self._rewrite_schema_dict(_dict)
return _dict

Expand Down

0 comments on commit c999166

Please sign in to comment.