-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deduplicate pull requests based on PR url + last update (#95)
* deduplicate pull requests based on PR url + last update * Update stg_pull_requests.sql * Update src_deduplicated_pull_requests.sql, stg_github_contributions.yml, and stg_pull_requests.sql --------- Co-authored-by: Ramon <ramon.vermeulen@ing.com>
- Loading branch information
1 parent
620b23a
commit c7680ef
Showing
3 changed files
with
8 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{ dbt_utils.deduplicate( | ||
relation=source("github_contributions", "src_pull_requests"), | ||
partition_by="pull_request_url", | ||
order_by="updated_at desc", | ||
) | ||
}} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: src_deduplicated_pull_requests | ||
- name: stg_pull_requests | ||
columns: | ||
- name: url | ||
|
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