From 06bdd72f0a09fb5c236ae3d51c385acb77dc4ba0 Mon Sep 17 00:00:00 2001 From: KijkEr Date: Fri, 20 Sep 2024 10:01:44 +0200 Subject: [PATCH] Fix linting errors --- models/dim_dbt__current_models.sql | 3 +++ models/dim_dbt__models.sql | 1 + models/dim_dbt__seeds.sql | 1 + models/dim_dbt__snapshots.sql | 1 + models/dim_dbt__sources.sql | 1 + models/fct_dbt__model_executions.sql | 1 + models/fct_dbt__seed_executions.sql | 1 + models/fct_dbt__snapshot_executions.sql | 1 + models/fct_dbt__test_executions.sql | 1 + 9 files changed, 11 insertions(+) diff --git a/models/dim_dbt__current_models.sql b/models/dim_dbt__current_models.sql index 778385a0..4e6ceb1b 100644 --- a/models/dim_dbt__current_models.sql +++ b/models/dim_dbt__current_models.sql @@ -7,6 +7,7 @@ with select * from base where run_started_at = (select max(run_started_at) from base) ), + latest_models_runs as ( /* Retreives all successful run information for the models present in the most @@ -32,6 +33,7 @@ with where model_executions.status = 'success' ), + latest_model_stats as ( select @@ -100,6 +102,7 @@ with group by node_id ), + final as ( select diff --git a/models/dim_dbt__models.sql b/models/dim_dbt__models.sql index 0836b0e9..34f066a2 100644 --- a/models/dim_dbt__models.sql +++ b/models/dim_dbt__models.sql @@ -1,5 +1,6 @@ with base as (select * from {{ ref("stg_dbt__models") }}), + models as ( select diff --git a/models/dim_dbt__seeds.sql b/models/dim_dbt__seeds.sql index 02b16dff..cf005fbf 100644 --- a/models/dim_dbt__seeds.sql +++ b/models/dim_dbt__seeds.sql @@ -1,5 +1,6 @@ with base as (select * from {{ ref("stg_dbt__seeds") }}), + seeds as ( select diff --git a/models/dim_dbt__snapshots.sql b/models/dim_dbt__snapshots.sql index 43d7c004..d1d0a999 100644 --- a/models/dim_dbt__snapshots.sql +++ b/models/dim_dbt__snapshots.sql @@ -1,5 +1,6 @@ with base as (select * from {{ ref("stg_dbt__snapshots") }}), + snapshots as ( select diff --git a/models/dim_dbt__sources.sql b/models/dim_dbt__sources.sql index f8a53552..c6e3263a 100644 --- a/models/dim_dbt__sources.sql +++ b/models/dim_dbt__sources.sql @@ -1,5 +1,6 @@ with base as (select * from {{ ref("stg_dbt__sources") }}), + sources as ( select diff --git a/models/fct_dbt__model_executions.sql b/models/fct_dbt__model_executions.sql index 43a43792..3b7c2368 100644 --- a/models/fct_dbt__model_executions.sql +++ b/models/fct_dbt__model_executions.sql @@ -1,5 +1,6 @@ with base as (select * from {{ ref("stg_dbt__model_executions") }}), + model_executions as ( select diff --git a/models/fct_dbt__seed_executions.sql b/models/fct_dbt__seed_executions.sql index f537c9da..1e6465a0 100644 --- a/models/fct_dbt__seed_executions.sql +++ b/models/fct_dbt__seed_executions.sql @@ -1,5 +1,6 @@ with base as (select * from {{ ref("stg_dbt__seed_executions") }}), + seed_executions as ( select diff --git a/models/fct_dbt__snapshot_executions.sql b/models/fct_dbt__snapshot_executions.sql index ee35c616..58ca4408 100644 --- a/models/fct_dbt__snapshot_executions.sql +++ b/models/fct_dbt__snapshot_executions.sql @@ -1,5 +1,6 @@ with base as (select * from {{ ref("stg_dbt__snapshot_executions") }}), + snapshot_executions as ( select diff --git a/models/fct_dbt__test_executions.sql b/models/fct_dbt__test_executions.sql index 9a4727e1..c9e347f0 100644 --- a/models/fct_dbt__test_executions.sql +++ b/models/fct_dbt__test_executions.sql @@ -1,5 +1,6 @@ with base as (select * from {{ ref("stg_dbt__test_executions") }}), + test_executions as ( select