Skip to content

Commit

Permalink
Load data qualty status from a source table from the correct connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrczarnas committed Sep 30, 2024
1 parent cd8d350 commit 91a6c6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ public TableCurrentDataQualityStatusModel collectUpstreamLineage(
Set<DomainConnectionTableKey> upstreamSourceTables = tableLineageEntry.getUpstreamSourceTables();
for (DomainConnectionTableKey upstreamTableKey : upstreamSourceTables) {
TableCurrentDataQualityStatusModel upstreamOnlyQualityStatus = this.tableStatusCache.getCurrentTableStatus(upstreamTableKey, null);
if (upstreamOnlyQualityStatus == null) {
upstreamOnlyQualityStatus = new TableCurrentDataQualityStatusModel() {{
setTableExist(false);
}};
}

if (visitedTables.contains(upstreamTableKey)) {
if (!onStackTables.contains(upstreamTableKey)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public Mono<ResponseEntity<Flux<TableLineageSourceListModel>>> getTableSourceTab
listModel.setSourceTableDataQualityStatus(notFoundTableStatus);
return;
}
TableWrapper sourceTableWrapper = connectionWrapper.getTables().getByObjectName(
TableWrapper sourceTableWrapper = sourceConnectionWrapper.getTables().getByObjectName(
new PhysicalTableName(listModel.getSourceSchema(), listModel.getSourceTable()), true);
if (sourceTableWrapper == null) {
listModel.setSourceTableDataQualityStatus(notFoundTableStatus);
Expand Down

0 comments on commit 91a6c6f

Please sign in to comment.