Skip to main content

aip_sdk.create_partition

aip_sdk.create_partition(dataset_id: str, version_id: str, *, name: str, selector: PartitionSelector, client: APIClient | None = None) -> Partition

Create a partition on a dataset version.

Parameters

  • dataset_id str: Dataset ID.
  • version_id str: Dataset version ID to attach the partition to.
  • name str: Partition name, unique within the version. Surrounding whitespace is trimmed.
  • selector PartitionSelector: The selector naming the evaluation target. partition_type on the created partition is derived from the selector. A SESSION or TRACE selector carries no target/ancestry_path; a SPAN selector may use them to narrow which spans match, or omit them to select every span.
  • client APIClient | None: Optional API client.

Returns

Raises