in src/package/dataplexutils/metadata/wizard.py [0:0]
def _split_dataset_fqn(self, dataset_fqn):
"""Splits a fully qualified dataset name into its components.
Args:
dataset_fqn (str): The fully qualified name of the dataset
(e.g., 'project.dataset')
Returns:
tuple: A tuple containing (project_id, dataset_id)
Raises:
Exception: If the dataset FQN cannot be parsed correctly
"""
try:
pattern = r"^([^.]+)\.([^.]+)"
match = re.search(pattern, dataset_fqn)
return match.group(1), match.group(2)
except Exception as e:
logger.error(f"Exception: {e}.")
raise e