awswrangler.catalog.get_table_location¶
-
awswrangler.catalog.
get_table_location
(database: str, table: str, boto3_session: Optional[boto3.session.Session] = None) → Any¶ Get table’s location on Glue catalog.
Note
This functions has arguments that can has default values configured globally through wr.config or environment variables:
database
Check out the Global Configurations Tutorial for details.
- Parameters
database (str) – Database name.
table (str) – Table name.
boto3_session (boto3.Session(), optional) – Boto3 Session. The default boto3 session will be used if boto3_session receive None.
- Returns
Table’s location.
- Return type
str
Examples
>>> import awswrangler as wr >>> wr.catalog.get_table_location(database='default', table='my_table') 's3://bucket/prefix/'