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
12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 | |