in src/package/dataplexutils/metadata/wizard.py [0:0]
def _get_table_description(self, table_fqn):
"""Retrieves the current description of a BigQuery table.
Args:
table_fqn (str): The fully qualified name of the table
(e.g., 'project.dataset.table')
Returns:
str: The current table description
Raises:
Exception: If there is an error retrieving the description
"""
try:
table = self._cloud_clients[constants["CLIENTS"]["BIGQUERY"]].get_table(
table_fqn
)
return table.description
except Exception as e:
logger.error(f"Exception: {e}.")
raise e