Skip to content

Commit

Permalink
Changed single select lines
Browse files Browse the repository at this point in the history
  • Loading branch information
poloaraujo committed Aug 30, 2024
1 parent bf46483 commit e94b400
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions models/dim_dbt__current_models.sql
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
with
base as (

select
*
from {{ ref('stg_dbt__models') }}
select * from {{ ref('stg_dbt__models') }}

)

, model_executions as (

select
*
from {{ ref('stg_dbt__model_executions') }}
select * from {{ ref('stg_dbt__model_executions') }}

)

, latest_models as (

/* Retrieves the models present in the most recent run */
select
*
select *
from base
where run_started_at = (select max(run_started_at) from base)

Expand Down

0 comments on commit e94b400

Please sign in to comment.