allow powerbi datamodel children in col.lineage (#18030)

This commit is contained in:
harshsoni2024 2024-09-27 19:28:59 +05:30 committed by GitHub
parent 8dc6b7d282
commit 9442cac1a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 20 deletions

View File

@ -544,12 +544,12 @@ class PowerbiSource(DashboardServiceSource):
to_entity=report_entity, from_entity=datamodel_entity
)
# create the lineage between table and datamodel
yield from self.create_table_datamodel_lineage(
db_service_name=db_service_name,
tables=dataset.tables,
datamodel_entity=datamodel_entity,
)
for table in dataset.tables or []:
yield self._get_table_and_datamodel_lineage(
db_service_name=db_service_name,
table=table,
datamodel_entity=datamodel_entity,
)
# create the lineage between table and datamodel using the pbit files
if self.client.file_client:
@ -678,20 +678,6 @@ class PowerbiSource(DashboardServiceSource):
)
)
def create_table_datamodel_lineage(
self,
db_service_name: str,
tables: Optional[List[PowerBiTable]],
datamodel_entity: Optional[DashboardDataModel],
) -> Iterable[Either[CreateDashboardRequest]]:
"""Method to create lineage between table and datamodels"""
for table in tables or []:
yield self._get_table_and_datamodel_lineage(
db_service_name=db_service_name,
table=table,
datamodel_entity=datamodel_entity,
)
def yield_dashboard_lineage_details(
self,
dashboard_details: Union[PowerBIDashboard, PowerBIReport],

View File

@ -30,6 +30,7 @@ export const DATATYPES_HAVING_SUBFIELDS = [
'STRUCT',
'ARRAY',
'UNION',
'TABLE',
];
export const PIPELINE_EDGE_WIDTH = 200;