in src/package/dataplexutils/metadata/wizard.py [0:0]
def _get_table_profile(self, use_enabled, table_fqn):
"""Retrieves the profile information for a BigQuery table.
Args:
use_enabled (bool): Whether profile retrieval is enabled
table_fqn (str): The fully qualified name of the table
(e.g., 'project.dataset.table')
Returns:
list: Table profile results, or empty list if disabled/not available
Raises:
Exception: If there is an error retrieving the table profile
"""
try:
table_profile = self._get_table_profile_quality(use_enabled, table_fqn)["data_profile"]
if not table_profile:
logger.info(f"No profile found for table in datascans{table_fqn}.")
#self._client_options._use_profile = False
return table_profile
except Exception as e:
logger.error(f"Exception: {e}.")
raise e