Skip to content

Commit ef3ca66

Browse files
Merge tag '0.4.4' into ac/testing
2 parents 5fdb6fa + ddeaf82 commit ef3ca66

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

models/incremental/fct_dbt__run_results.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ fields as (
3434
was_full_refresh
3535

3636
{% if env_keys %}
37-
{% for key in env_keys %}
37+
-- Environment keys are sorted for determinism.
38+
{% for key in env_keys|sort %}
3839
,env:{{ key }} as env_{{ key }}
3940
{% endfor %}
4041
{% endif %}

models/schemas.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,28 @@ models:
1515
description: The duration of time in minutes for the model to run.
1616
- name: model_materialization
1717

18+
- name: fct_dbt__exposures_updates
19+
description: A table of exposures and models feeding them. Latest update time for each models is provided.
20+
columns:
21+
- name: latest_generation
22+
description: Timestamp of when the source artifact was generated.
23+
- name: node_id
24+
description: Unique id for the node, in the form of exposure.[package_name].[exposure_name]
25+
- name: name
26+
description: User-defined name of the exposure.
27+
- name: type
28+
description: User-defined type of the exposure.
29+
- name: owner
30+
description: User-defined owner of the exposure.
31+
- name: maturity
32+
description: User-defined name of the exposure.
33+
- name: package_name
34+
description: Source package in which each feed of an exposure was defined.
35+
- name: output_feeds
36+
description: Unique id for each feed of an exposure, in the form of model.[package_name].[model_name]
37+
- name: feed_latest_update
38+
description: Timestamp of the latest update of each feed of an exposure.
39+
1840
- name: fct_dbt__latest_full_model_executions
1941
description: A list of all models and executions times from the most recent, incremental run.
2042
columns:
@@ -104,6 +126,33 @@ models:
104126
- name: env_*
105127
description: Columns for the environment variables set when the command was executed.
106128

129+
- name: dim_dbt__exposures
130+
description: All dbt exposures metadata from every manifest.json.
131+
columns:
132+
- name: manifest_model_id
133+
description: Primary key generated from the command_invocation_id and checksum.
134+
tests:
135+
- unique
136+
- not_null
137+
- name: command_invocation_id
138+
description: The id of the command which resulted in the source artifact's generation.
139+
- name: artifact_generated_at
140+
description: Timestamp of when the source artifact was generated.
141+
- name: node_id
142+
description: Unique id for the node, in the form of exposure.[package_name].[exposure_name]
143+
- name: name
144+
description: User-defined name of the exposure.
145+
- name: type
146+
description: User-defined type of the exposure.
147+
- name: owner
148+
description: User-defined owner of the exposure.
149+
- name: maturity
150+
description: User-defined name of the exposure.
151+
- name: output_feeds
152+
description: Unique id for each feed of an exposure, in the form of model.[package_name].[model_name]
153+
- name: package_name
154+
description: Source package in which each feed of an exposure was defined.
155+
107156
- name: dim_dbt__models
108157
description: All dbt model metadata from every manifest.json.
109158
columns:

models/staging/stg_dbt__run_results_env_keys.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ env_keys as (
2727
distinct(env.key)
2828
from dbt_run,
2929
lateral flatten(input => data:metadata:env) as env
30+
-- Sort results to ensure things are deterministic
31+
order by 1
3032

3133
)
3234

0 commit comments

Comments
 (0)