get_table
async
¶
get_table(
database_name: NameString,
name: NameString,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
transaction_id: Optional[TransactionIdString] = None,
query_as_of_time: Optional[Timestamp] = None,
audit_context: Optional[AuditContext] = None,
include_status_details: Optional[BooleanNullable] = None,
attributes_to_get: Optional[TableAttributesList] = None,
) -> GetTableResponse
Retrieves the Table definition in a Data Catalog for a specified table.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.
-
database_name(NameString) –The name of the database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.
-
name(NameString) –The name of the table for which to retrieve the definition. For Hive compatibility, this name is entirely lowercase.
-
transaction_id(Optional[TransactionIdString], default:None) –The transaction ID at which to read the table contents.
-
query_as_of_time(Optional[Timestamp], default:None) –The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with
TransactionId. -
audit_context(Optional[AuditContext], default:None) –A structure containing the Lake Formation audit context.
-
include_status_details(Optional[BooleanNullable], default:None) –Specifies whether to include status details related to a request to create or update an Glue Data Catalog view.
-
attributes_to_get(Optional[TableAttributesList], default:None) –Specifies the table fields returned by the
GetTablecall. This parameter doesn't accept an empty list.The following are the valid combinations of values:
-
DEFAULT- Returns the Hive-style table definition only. -
LATEST_ICEBERG_METADATA- Returns only the latest Apache Iceberg table metadata. -
DEFAULT,LATEST_ICEBERG_METADATA- Returns both the Hive-style table definition and the latest Apache Iceberg table metadata.
-
Raises:
-
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 | |