Skip to content

Commit

Permalink
allow powerbi datamodel children in col.lineage (#18030)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshsoni2024 authored Sep 27, 2024
1 parent 8dc6b7d commit 9442cac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,12 +544,12 @@ def create_datamodel_report_lineage(
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:
Expand Down Expand Up @@ -678,20 +678,6 @@ def create_table_datamodel_lineage_from_files(
)
)

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],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const DATATYPES_HAVING_SUBFIELDS = [
'STRUCT',
'ARRAY',
'UNION',
'TABLE',
];

export const PIPELINE_EDGE_WIDTH = 200;
Expand Down

0 comments on commit 9442cac

Please sign in to comment.