awswrangler.athena.get_query_columns_types¶
- awswrangler.athena.get_query_columns_types(query_execution_id: str, boto3_session: Session | None = None) dict[str, str] ¶
Get the data type of all columns queried.
https://docs.aws.amazon.com/athena/latest/ug/data-types.html
- Parameters:
query_execution_id (
str
) – Athena query execution ID.boto3_session (
Session
|None
) – The default boto3 session will be used if boto3_session receiveNone
.
- Return type:
dict
[str
,str
]- Returns:
Dictionary with all data types.
Examples
>>> import awswrangler as wr >>> wr.athena.get_query_columns_types('query-execution-id') {'col0': 'int', 'col1': 'double'}