def _get_table_quality()

in src/package/dataplexutils/metadata/wizard.py [0:0]


    def _get_table_quality(self, use_enabled, table_fqn):
        """Retrieves the data quality information for a BigQuery table.

        Args:
            use_enabled (bool): Whether quality check retrieval is enabled
            table_fqn (str): The fully qualified name of the table
                (e.g., 'project.dataset.table')

        Returns:
            list: Data quality results, or empty list if disabled/not available

        Raises:
            Exception: If there is an error retrieving quality information
        """
        try:
            table_quality = self._get_table_profile_quality(use_enabled, table_fqn)["data_quality"]
            # If the user is requesting to use data quality but there is
            # not data quality information to return, we disable the client
            # options flag so the prompt do not include this.
            if not table_quality:
                logger.info(f"No quality check found for table in datascans{table_fqn}.")
                #self._client_options._use_data_quality = False
            return table_quality
        except Exception as e:
            logger.error(f"Exception: {e}.")
            raise e