milvus-logo
LFAI
< Docs
  • Python

has_partition()

This method checks if a partition exists in a specified collection.

Invocation

has_partition(collection_name, partition_name, using='default')

Parameters

ParameterDescriptionTypeRequired
collection_nameName of the collection to check the partition in.StringTrue
partition_nameName of the partition to check.StringTrue
usingMilvus connection used to check the partition.StringFalse

Return

Boolean value that indicates if the partition exists.

Feedback

Was this page helpful?