create_partition_index
¶
create_partition_index(
database_name: NameString,
table_name: NameString,
partition_index: PartitionIndex,
*,
config_overrides: Optional[GlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
) -> CreatePartitionIndexResponse
Creates a specified partition index in an existing table.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The catalog ID where the table resides.
-
database_name(NameString) –Specifies the name of a database in which you want to create a partition index.
-
table_name(NameString) –Specifies the name of a table in which you want to create a partition index.
-
partition_index(PartitionIndex) –Specifies a
PartitionIndexstructure to create a partition index in an existing table.
Raises:
-
AlreadyExistsException–A resource to be created or added already exists.
-
EntityNotFoundException–A specified entity does not exist
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNumberLimitExceededException–A resource numerical limit was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/glue.py
4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 | |