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'
)
[REQUIRED]
Specifies the name of a database from which you want to retrieve partition indexes.
[REQUIRED]
Specifies the name of a table for which you want to retrieve the partition indexes.
dict
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:
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:
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.
NextToken (string) --
A continuation token, present if the current list segment is not the last.
Exceptions
Glue.Client.exceptions.InternalServiceException
Glue.Client.exceptions.OperationTimeoutException
Glue.Client.exceptions.InvalidInputException
Glue.Client.exceptions.EntityNotFoundException
Glue.Client.exceptions.ConflictException