create_table
¶
create_table(
database_name: NameString,
*,
config_overrides: Optional[GlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
name: Optional[NameString] = None,
table_input: Optional[TableInput] = None,
partition_indexes: Optional[PartitionIndexList] = None,
transaction_id: Optional[TransactionIdString] = None,
open_table_format_input: Optional[OpenTableFormatInput] = None,
) -> CreateTableResponse
Creates a new table definition in the Data Catalog.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The ID of the Data Catalog in which to create the
Table. If none is supplied, the Amazon Web Services account ID is used by default. -
database_name(NameString) –The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.
-
name(Optional[NameString], default:None) –The unique identifier for the table within the specified database that will be created in the Glue Data Catalog.
-
table_input(Optional[TableInput], default:None) –The
TableInputobject that defines the metadata table to create in the catalog. -
partition_indexes(Optional[PartitionIndexList], default:None) –A list of partition indexes,
PartitionIndexstructures, to create in the table. -
transaction_id(Optional[TransactionIdString], default:None) –The ID of the transaction.
-
open_table_format_input(Optional[OpenTableFormatInput], default:None) –Specifies an
OpenTableFormatInputstructure when creating an open format table.
Raises:
-
AlreadyExistsException–A resource to be created or added already exists.
-
ConcurrentModificationException–Two processes are trying to modify a resource simultaneously.
-
EntityNotFoundException–A specified entity does not exist
-
FederationSourceException–A federation source failed.
-
FederationSourceRetryableException–A federation source failed, but the operation may be retried.
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNotReadyException–A resource was not ready for a transaction.
-
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
4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 | |