-
Notifications
You must be signed in to change notification settings - Fork 91
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 #745 from kokorin/feature/add-seed_run_results-model
Add seed_run_results model
- Loading branch information
Showing
3 changed files
with
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{{ | ||
config( | ||
materialized = 'view', | ||
bind=False | ||
) | ||
}} | ||
|
||
with dbt_run_results as ( | ||
select * from {{ ref('dbt_run_results') }} | ||
), | ||
|
||
dbt_seeds as ( | ||
select * from {{ ref('dbt_seeds') }} | ||
) | ||
|
||
SELECT | ||
run_results.model_execution_id, | ||
run_results.unique_id, | ||
run_results.invocation_id, | ||
run_results.query_id, | ||
run_results.name, | ||
run_results.generated_at, | ||
run_results.status, | ||
run_results.full_refresh, | ||
run_results.message, | ||
run_results.execution_time, | ||
run_results.execute_started_at, | ||
run_results.execute_completed_at, | ||
run_results.compile_started_at, | ||
run_results.compile_completed_at, | ||
run_results.compiled_code, | ||
run_results.adapter_response, | ||
run_results.thread_id, | ||
seeds.database_name, | ||
seeds.schema_name, | ||
run_results.materialization, | ||
seeds.tags, | ||
seeds.package_name, | ||
seeds.path, | ||
seeds.original_path, | ||
seeds.owner, | ||
seeds.alias | ||
FROM dbt_run_results run_results | ||
JOIN dbt_seeds seeds ON run_results.unique_id = seeds.unique_id |