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