-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: github repo
dependencies
dlt asset (#2397)
* add: dagster `github_sbom_resource` asset * add: `sbom` manifests for `ossd` repositories * add: `missing_sbom` staging model * add: `missing_sbom` dagster asset
- Loading branch information
Showing
5 changed files
with
242 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
warehouse/dbt/models/staging/oss-directory/stg_ossd__missing_sbom.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{ config( | ||
materialized = 'view' | ||
) }} | ||
|
||
with source as ( | ||
select * | ||
from {{ source('ossd', 'missing_sbom') }} | ||
), | ||
|
||
current_dlt_load_id as ( | ||
select max(_dlt_load_id) as max_dlt_load_id | ||
from source | ||
), | ||
|
||
last_snapshot as ( | ||
select * | ||
from source | ||
where _dlt_load_id = (select max_dlt_load_id from current_dlt_load_id) | ||
) | ||
|
||
select * | ||
from last_snapshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters