in src/package/dataplexutils/metadata/wizard.py [0:0]
def _get_table_sources_info(self, use_enabled, table_fqn):
"""Add stringdocs
Args:
Add stringdocs
Raises:
Add stringdocs
"""
try:
if use_enabled:
table_sources_info = []
table_sources = self._get_table_sources(table_fqn)
for table_source in table_sources:
table_sources_info.append(
{
"source_table_name": table_source,
"source_table_schema": self._get_table_schema(table_source),
"source_table_description": self._get_table_description(
table_source
),
# "source_table_sample": self._get_table_sample(
# table_source, constants["DATA"]["NUM_ROWS_TO_SAMPLE"]
# ),
}
)
if not table_sources_info:
self._client_options._use_lineage_tables = False
return table_sources_info
else:
return []
except Exception as e:
logger.error(f"Exception: {e}.")
raise e