Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DataRecce/oso
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b7e20734b07edd27b75c7093aac3bc1c4980e29b
Choose a base ref
..
head repository: DataRecce/oso
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 98e77cf14ffb3bc4f60a57c10a39303018c91666
Choose a head ref
2 changes: 2 additions & 0 deletions .github/workflows/recce-ci.yml
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@ name: OSO Recce CI
on:
pull_request:
branches: [main, dev]
paths:
- warehouse/dbt/**

env:
# dbt env variables used in your dbt profiles.yml
47 changes: 29 additions & 18 deletions warehouse/dbt/models/intermediate/events/int_time_intervals.sql
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
with dates as (
select
'7 DAYS' as time_interval,
DATE_SUB(CURRENT_DATE(), interval 7 day) as start_date
union all
select
'30 DAYS' as time_interval,
DATE_SUB(CURRENT_DATE(), interval 30 day) as start_date
union all
select
'90 DAYS' as time_interval,
DATE_SUB(CURRENT_DATE(), interval 90 day) as start_date
union all
select
'6 MONTHS' as time_interval,
DATE_SUB(CURRENT_DATE(), interval 6 month) as start_date
union all
select
'1 YEAR' as time_interval,
DATE_SUB(CURRENT_DATE(), interval 1 year) as start_date
union all
select
'ALL' as time_interval,
DATE('1970-01-01') as start_date
)

select
'30D' as time_interval,
DATE_SUB(CURRENT_DATE(), interval 30 day) as start_date
union all
select
'90D' as time_interval,
DATE_SUB(CURRENT_DATE(), interval 90 day) as start_date
union all
select
'6M' as time_interval,
DATE_SUB(CURRENT_DATE(), interval 6 month) as start_date
union all
select
'1Y' as time_interval,
DATE_SUB(CURRENT_DATE(), interval 1 year) as start_date
union all
select
'ALL' as time_interval,
DATE('1970-01-01') as start_date
dates.time_interval,
TIMESTAMP(dates.start_date) as start_date
from dates

This file was deleted.