Skip to main content

table_metadatas

Creates, updates, deletes, gets or lists a table_metadatas resource.

Overview

Nametable_metadatas
TypeResource
Idaws.athena.table_metadatas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
columnsarrayA list of the columns in the table.
create_timestring (date-time)The time that the table was created.
last_access_timestring (date-time)The last time the table was accessed.
namestringThe name of the table.
parametersobjectA set of custom key/value pairs for table properties.
partition_keysarrayA list of the partition keys in the table.
table_typestringThe type of table. In Athena, only EXTERNAL_TABLE is supported.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_table_metadataselectregionReturns table metadata for the specified catalog, database, and table.
list_table_metadataselectregionLists the metadata for the tables in the specified data catalog database.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns table metadata for the specified catalog, database, and table.

SELECT
columns,
create_time,
last_access_time,
name,
parameters,
partition_keys,
table_type
FROM aws.athena.table_metadatas
WHERE region = '{{ region }}' -- required
;