Glue / Client / get_partition_indexes

get_partition_indexes#

Glue.Client.get_partition_indexes(**kwargs)#

Retrieves the partition indexes associated with a table.

See also: AWS API Documentation

Request Syntax

response = client.get_partition_indexes(
    CatalogId='string',
    DatabaseName='string',
    TableName='string',
    NextToken='string'
)
Parameters:
  • CatalogId (string) – The catalog ID where the table resides.

  • DatabaseName (string) –

    [REQUIRED]

    Specifies the name of a database from which you want to retrieve partition indexes.

  • TableName (string) –

    [REQUIRED]

    Specifies the name of a table for which you want to retrieve the partition indexes.

  • NextToken (string) – A continuation token, included if this is a continuation call.

Return type:

dict

Returns:

Response Syntax

{
    'PartitionIndexDescriptorList': [
        {
            'IndexName': 'string',
            'Keys': [
                {
                    'Name': 'string',
                    'Type': 'string'
                },
            ],
            'IndexStatus': 'CREATING'|'ACTIVE'|'DELETING'|'FAILED',
            'BackfillErrors': [
                {
                    'Code': 'ENCRYPTED_PARTITION_ERROR'|'INTERNAL_ERROR'|'INVALID_PARTITION_TYPE_DATA_ERROR'|'MISSING_PARTITION_VALUE_ERROR'|'UNSUPPORTED_PARTITION_CHARACTER_ERROR',
                    'Partitions': [
                        {
                            'Values': [
                                'string',
                            ]
                        },
                    ]
                },
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • PartitionIndexDescriptorList (list) –

      A list of index descriptors.

      • (dict) –

        A descriptor for a partition index in a table.

        • IndexName (string) –

          The name of the partition index.

        • Keys (list) –

          A list of one or more keys, as KeySchemaElement structures, for the partition index.

          • (dict) –

            A partition key pair consisting of a name and a type.

            • Name (string) –

              The name of a partition key.

            • Type (string) –

              The type of a partition key.

        • IndexStatus (string) –

          The status of the partition index.

          The possible statuses are:

          • CREATING: The index is being created. When an index is in a CREATING state, the index or its table cannot be deleted.

          • ACTIVE: The index creation succeeds.

          • FAILED: The index creation fails.

          • DELETING: The index is deleted from the list of indexes.

        • BackfillErrors (list) –

          A list of errors that can occur when registering partition indexes for an existing table.

          • (dict) –

            A list of errors that can occur when registering partition indexes for an existing table.

            These errors give the details about why an index registration failed and provide a limited number of partitions in the response, so that you can fix the partitions at fault and try registering the index again. The most common set of errors that can occur are categorized as follows:

            • EncryptedPartitionError: The partitions are encrypted.

            • InvalidPartitionTypeDataError: The partition value doesn’t match the data type for that partition column.

            • MissingPartitionValueError: The partitions are encrypted.

            • UnsupportedPartitionCharacterError: Characters inside the partition value are not supported. For example: U+0000 , U+0001, U+0002.

            • InternalError: Any error which does not belong to other error codes.

            • Code (string) –

              The error code for an error that occurred when registering partition indexes for an existing table.

            • Partitions (list) –

              A list of a limited number of partitions in the response.

              • (dict) –

                Contains a list of values defining partitions.

                • Values (list) –

                  The list of values.

                  • (string) –

    • NextToken (string) –

      A continuation token, present if the current list segment is not the last.

Exceptions