def normalise_dataset_name(self, dataset_name: str) -> str: (project_id, schema, table) = dataset_name.split(".") trimmed_table_name = (BigQueryTableRef.from_spec_obj({ "projectId": project_id, "datasetId": schema, "tableId": table }).remove_extras().table) return f"{project_id}.{schema}.{trimmed_table_name}"
def get_identifier( self, *, schema: str, entity: str, inspector: Inspector, **kwargs: Any, ) -> str: assert inspector project_id = self._get_project_id(inspector) table_name = BigQueryTableRef.from_spec_obj({ "projectId": project_id, "datasetId": schema, "tableId": entity }).table return f"{project_id}.{schema}.{table_name}"