Skip to content

Commit

Permalink
add logic to account for non dbt upstreams
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-cartwright committed Oct 27, 2023
1 parent 07a5e4c commit 2115710
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,8 @@ private void handleSourceDatasetEvent(MetadataChangeLog event, DatasetUrn source
// We're assuming a data asset (eg. snowflake table) will only ever be downstream of 1 dbt model
if (dbtUpstreams.size() == 1) {
setSiblingsAndSoftDeleteSibling(dbtUpstreams.get(0).getDataset(), sourceUrn);
} else {
} else if (dbtUpstreams.size() > 1) {
log.error("{} has an unexpected number of dbt upstreams: {}. Not adding any as siblings.", sourceUrn.toString(), dbtUpstreams.size());

}
}
}
Expand Down

0 comments on commit 2115710

Please sign in to comment.