Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
milvus: fixed bug when using partition key and dynamic fields together (
#25028) **Description:** This PR fixes a bug where if `enable_dynamic_field` and `partition_key_field` are enabled at the same time, a pymilvus error occurs. Milvus requires the partition key field to be a full schema defined field, and not a dynamic one, so it will throw the error "the specified partition key field {field} not exist" when creating the collection. When `enabled_dynamic_field` is set to `True`, all schema field creation based on `metadatas` is skipped. This code now checks if `partition_key_field` is set, and creates the field. Integration test added. **Twitter handle:** StuartMarshUK --------- Co-authored-by: Stuart Marsh <[email protected]> Co-authored-by: Erick Friis <[email protected]>
- Loading branch information