forked from dbt-labs/dbt-project-evaluator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dbt-labs#377 from dbt-labs/epapineau/undocumented-…
…sources Epapineau/undocumented sources
- Loading branch information
Showing
9 changed files
with
122 additions
and
1 deletion.
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
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
6 changes: 6 additions & 0 deletions
6
integration_tests/seeds/docs/test_fct_undocumented_source_tables.csv
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 @@ | ||
resource_name | ||
source_1.table_4 | ||
source_1.table_5 | ||
source_2.table_3 | ||
source_1.raw_table_5 | ||
source_1.table_2 |
2 changes: 2 additions & 0 deletions
2
integration_tests/seeds/docs/test_fct_undocumented_sources.csv
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,2 @@ | ||
source_name | ||
source_2 |
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
21 changes: 21 additions & 0 deletions
21
models/marts/documentation/fct_undocumented_source_tables.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,21 @@ | ||
with | ||
|
||
all_resources as ( | ||
select * from {{ ref('int_all_graph_resources') }} | ||
where not is_excluded | ||
|
||
), | ||
|
||
final as ( | ||
|
||
select | ||
resource_name | ||
|
||
from all_resources | ||
where not is_described and resource_type = 'source' | ||
|
||
) | ||
|
||
select * from final | ||
|
||
{{ filter_exceptions(model.name) }} |
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,21 @@ | ||
with | ||
|
||
all_resources as ( | ||
select * from {{ ref('int_all_graph_resources') }} | ||
where not is_excluded | ||
|
||
), | ||
|
||
final as ( | ||
|
||
select distinct | ||
source_name | ||
|
||
from all_resources | ||
where not is_source_described and resource_type = 'source' | ||
|
||
) | ||
|
||
select * from final | ||
|
||
{{ filter_exceptions(model.name) }} |