mirror of
https://github.com/dbt-labs/dbt-project-evaluator.git
synced 2025-12-18 02:11:27 +00:00
create dummy DAG
This commit is contained in:
10
README.md
10
README.md
@@ -1,2 +1,8 @@
|
|||||||
# pro-serv-dag-auditing
|
This project is intended to be a dbt porject with poor DAG modeling so the professional services team can develop tools to detect these errors
|
||||||
this repo is to both test out using olivertwist and also try to develop some macros to find DAG issues automatically
|
|
||||||
|
### Types of DAG issues to potentially detect:
|
||||||
|
|
||||||
|
- __Direct Join to Source__: a model has a reference to both a model and a source
|
||||||
|
- __Source Fanout__: a source is used in multiple models
|
||||||
|
- __Multiple Sources Joined__: a model references more than one source
|
||||||
|
- __Rejoining of Upstream Concepts__: a circular reference is created in the DAG
|
||||||
|
|||||||
0
analysis/.gitkeep
Normal file
0
analysis/.gitkeep
Normal file
0
data/.gitkeep
Normal file
0
data/.gitkeep
Normal file
26
dbt_project.yml
Normal file
26
dbt_project.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
# Name your project! Project names should contain only lowercase characters
|
||||||
|
# and underscores. A good package name should reflect your organization's
|
||||||
|
# name or the intended use of these models
|
||||||
|
name: 'pro_serv_dag_auditing'
|
||||||
|
version: '1.0.0'
|
||||||
|
config-version: 2
|
||||||
|
|
||||||
|
# This setting configures which "profile" dbt uses for this project.
|
||||||
|
profile: 'dbt-learn'
|
||||||
|
|
||||||
|
# These configurations specify where dbt should look for different types of files.
|
||||||
|
# The `source-paths` config, for example, states that models in this project can be
|
||||||
|
# found in the "models/" directory. You probably won't need to change these!
|
||||||
|
source-paths: ["models"]
|
||||||
|
analysis-paths: ["analysis"]
|
||||||
|
test-paths: ["tests"]
|
||||||
|
data-paths: ["data"]
|
||||||
|
macro-paths: ["macros"]
|
||||||
|
snapshot-paths: ["snapshots"]
|
||||||
|
|
||||||
|
target-path: "target" # directory which will store compiled SQL files
|
||||||
|
clean-targets: # directories to be removed by `dbt clean`
|
||||||
|
- "target"
|
||||||
|
- "dbt_modules"
|
||||||
|
|
||||||
1339
logs/dbt.log
Normal file
1339
logs/dbt.log
Normal file
File diff suppressed because it is too large
Load Diff
0
macros/.gitkeep
Normal file
0
macros/.gitkeep
Normal file
2
models/marts/dim_model_7.sql
Normal file
2
models/marts/dim_model_7.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
{{ ref('stg_model_2') }}
|
||||||
|
{{ ref('int_model_5') }}
|
||||||
1
models/marts/fct_model_6.sql
Normal file
1
models/marts/fct_model_6.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ ref('stg_model_3') }}
|
||||||
2
models/marts/int_model_4.sql
Normal file
2
models/marts/int_model_4.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
{{ ref('stg_model_1') }}
|
||||||
|
{{ source('source_1', 'table_2') }}
|
||||||
2
models/marts/int_model_5.sql
Normal file
2
models/marts/int_model_5.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
{{ ref('int_model_4') }}
|
||||||
|
{{ ref('stg_model_1') }}
|
||||||
1
models/reports/report_1.sql
Normal file
1
models/reports/report_1.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ ref('fct_model_6') }}
|
||||||
1
models/reports/report_2.sql
Normal file
1
models/reports/report_2.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ ref('fct_model_6') }}
|
||||||
1
models/reports/report_3.sql
Normal file
1
models/reports/report_3.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ ref('fct_model_6') }}
|
||||||
10
models/staging/source.yml
Normal file
10
models/staging/source.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
version: 2
|
||||||
|
|
||||||
|
sources:
|
||||||
|
- name: source_1
|
||||||
|
schema: real_schema
|
||||||
|
database: real_database
|
||||||
|
tables:
|
||||||
|
- name: table_1
|
||||||
|
- name: table_2
|
||||||
|
- name: table_3
|
||||||
1
models/staging/stg_model_1.sql
Normal file
1
models/staging/stg_model_1.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ source('source_1', 'table_1') }}
|
||||||
2
models/staging/stg_model_2.sql
Normal file
2
models/staging/stg_model_2.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
{{ source('source_1', 'table_1') }}
|
||||||
|
{{ source('source_1', 'table_2') }}
|
||||||
1
models/staging/stg_model_3.sql
Normal file
1
models/staging/stg_model_3.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{{ source('source_1', 'table_3') }}
|
||||||
0
snapshots/.gitkeep
Normal file
0
snapshots/.gitkeep
Normal file
1
target/catalog.json
Normal file
1
target/catalog.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"nodes": {}, "sources": {}, "generated_at": "2022-01-07T16:57:12.744824Z", "errors": ["Database Error\n 002003 (02000): SQL compilation error:\n Database 'REAL_DATABASE' does not exist or not authorized."]}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
analytics.dbt_dconnors.stg_model_2
|
||||||
|
analytics.dbt_dconnors.int_model_5
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
analytics.dbt_dconnors.stg_model_3
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
analytics.dbt_dconnors.stg_model_1
|
||||||
|
real_database.real_schema.table_2
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
analytics.dbt_dconnors.int_model_4
|
||||||
|
analytics.dbt_dconnors.stg_model_1
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
analytics.dbt_dconnors.fct_model_6
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
analytics.dbt_dconnors.fct_model_6
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
analytics.dbt_dconnors.fct_model_6
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
real_database.real_schema.table_1
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
real_database.real_schema.table_1
|
||||||
|
real_database.real_schema.table_2
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
real_database.real_schema.table_3
|
||||||
BIN
target/graph.gpickle
Normal file
BIN
target/graph.gpickle
Normal file
Binary file not shown.
134
target/index.html
Normal file
134
target/index.html
Normal file
File diff suppressed because one or more lines are too long
1
target/manifest.json
Normal file
1
target/manifest.json
Normal file
File diff suppressed because one or more lines are too long
BIN
target/partial_parse.pickle
Normal file
BIN
target/partial_parse.pickle
Normal file
Binary file not shown.
1
target/run_results.json
Normal file
1
target/run_results.json
Normal file
File diff suppressed because one or more lines are too long
0
tests/.gitkeep
Normal file
0
tests/.gitkeep
Normal file
Reference in New Issue
Block a user