in src/package/dataplexutils/metadata/wizard.py [0:0]
def _get_table_schema(self, table_fqn):
"""Add stringdocs
Args:
Add stringdocs
Raises:
Add stringdocs
"""
try:
table = self._cloud_clients[constants["CLIENTS"]["BIGQUERY"]].get_table(
table_fqn
)
schema_fields = table.schema
flattened_schema = [
{"name": field.name, "type": field.field_type}
for field in schema_fields
]
return flattened_schema, table.schema
except NotFound:
logger.error(f"Table {table_fqn} is not found.")
raise NotFound(message=f"Table {table_fqn} is not found.")