Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature branch zifeng #191

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
snowflake_warehouse=get_snowflake_refresh_warehouse(small="XL")
) }}

with

with
source as (
select * from {{ ref('int_pems__diagnostic_samples_per_station') }}
{% if is_incremental() %}
Expand Down Expand Up @@ -36,6 +36,7 @@ source as (
),

detector_status as (

select
sps.*,
co.min_occupancy_delta,
Expand Down Expand Up @@ -84,6 +85,7 @@ detector_status as (
end as status
from {{ ref('int_pems__det_diag_set_assignment') }} as set_assgnmt
left join source as sps

on
set_assgnmt.station_id = sps.station_id
and set_assgnmt.station_valid_from <= sps.sample_date
Expand Down
4 changes: 2 additions & 2 deletions transform/package-lock.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages:
- package: dbt-labs/dbt_utils
version: 1.1.1
- package: dbt-labs/dbt_utils
version: 1.1.1
sha1_hash: a158c48c59c2bb7d729d2a4e215aabe5bb4f3353
Loading