def _list_tables_in_dataset()

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


    def _list_tables_in_dataset(self,dataset_fqn):
        """Lists all tables in a given dataset.

        Args:
            project_id: The ID of the project.
            dataset_id: The ID of the dataset.

        Returns:
            A list of table names.
        """

        client = self._cloud_clients[
                    constants["CLIENTS"]["BIGQUERY"]
                ]
        client = bigquery.Client()

        project_id, dataset_id = self._split_dataset_fqn(dataset_fqn)

        dataset_ref = client.dataset(dataset_id, project=project_id)
        tables = client.list_tables(dataset_ref)

        table_names = [str(table.full_table_id).replace(":",".") for table in tables]
        return table_names