Table
¶
Source code in docs_src/capo_glue/types/table.py
catalog_id
instance-attribute
¶
catalog_id: NotRequired[CatalogIdString]
The ID of the Data Catalog in which the table resides.
create_time
instance-attribute
¶
create_time: NotRequired[Timestamp]
The time when the table definition was created in the Data Catalog.
created_by
instance-attribute
¶
created_by: NotRequired[NameString]
The person or entity who created the table.
database_name
instance-attribute
¶
database_name: NotRequired[NameString]
The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.
description
instance-attribute
¶
description: NotRequired[DescriptionString]
A description of the table.
federated_table
instance-attribute
¶
federated_table: NotRequired[FederatedTable]
A FederatedTable structure that references an entity outside the Glue Data Catalog.
iceberg_table_metadata
instance-attribute
¶
iceberg_table_metadata: NotRequired[IcebergTableMetadata]
The latest Apache Iceberg table metadata for the table, including format version, schemas, partition specifications, and sort orders. This field is populated for Iceberg tables and reflects the current state of the table's Iceberg metadata.
is_materialized_view
instance-attribute
¶
is_materialized_view: NotRequired[NullableBoolean]
Indicates a table is a MaterializedView.
is_multi_dialect_view
instance-attribute
¶
is_multi_dialect_view: NotRequired[NullableBoolean]
Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be read by those engines.
is_registered_with_lake_formation
instance-attribute
¶
is_registered_with_lake_formation: Boolean
Indicates whether the table has been registered with Lake Formation.
last_access_time
instance-attribute
¶
last_access_time: NotRequired[Timestamp]
The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
last_analyzed_time
instance-attribute
¶
last_analyzed_time: NotRequired[Timestamp]
The last time that column statistics were computed for this table.
name
instance-attribute
¶
name: NameString
The table name. For Hive compatibility, this must be entirely lowercase.
parameters
instance-attribute
¶
parameters: NotRequired[ParametersMap]
These key-value pairs define properties associated with the table.
partition_keys
instance-attribute
¶
partition_keys: NotRequired[ColumnList]
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you must at least set the value of partitionKeys to an empty list. For example:
"PartitionKeys": []
rls_properties
instance-attribute
¶
rls_properties: NotRequired[RLSProperties]
A RLSProperties structure that describes the default row-level security policy of the table.
status
instance-attribute
¶
status: NotRequired[TableStatus]
Indicates the the state of an asynchronous change to a table.
storage_descriptor
instance-attribute
¶
storage_descriptor: NotRequired[StorageDescriptor]
A storage descriptor containing information about the physical storage of this table.
table_type
instance-attribute
¶
table_type: NotRequired[TableTypeString]
The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other services, such as Athena, may create tables with additional table types.
Glue related table types:
- EXTERNAL_TABLE
-
Hive compatible attribute - indicates a non-Hive managed table.
- GOVERNED
-
Used by Lake Formation. The Glue Data Catalog understands
GOVERNED.
target_table
instance-attribute
¶
target_table: NotRequired[TableIdentifier]
A TableIdentifier structure that describes a target table for resource linking.
update_time
instance-attribute
¶
update_time: NotRequired[Timestamp]
The last time that the table was updated.
view_definition
instance-attribute
¶
view_definition: NotRequired[ViewDefinition]
A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.
view_expanded_text
instance-attribute
¶
view_expanded_text: NotRequired[ViewTextString]
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
view_original_text
instance-attribute
¶
view_original_text: NotRequired[ViewTextString]
Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a VIRTUAL_VIEW, certain Athena configuration encoded in base64.