awswrangler.catalog.get_table_location

awswrangler.catalog.get_table_location(database: str, table: str, boto3_session: Optional[boto3.session.Session] = None) → str

Get table’s location on Glue catalog.

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', name='my_table')
's3://bucket/prefix/'