Skip to content

Commit

Permalink
Fix timeseries integration tests (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
clausherther authored May 3, 2021
1 parent 2a58ec6 commit fd53524
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integration_tests/models/schema_tests/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ models:
trend_periods: 48
test_periods: 12
sigma_threshold: 6
take_logs: true
take_logs: false


- name: data_test
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/models/schema_tests/timeseries_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ add_row_values as (

select
d.date_day,
cast(floor(100 * abs({{ dbt_expectations.rand() }})) as {{ dbt_utils.type_int() }}) as row_value
cast(abs({{ dbt_expectations.rand() }}) as {{ dbt_utils.type_float() }}) as row_value
from
dates d

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ add_row_values as (

select
d.date_day,
cast(floor(100 * r.generated_number) as {{ dbt_utils.type_int() }}) as row_value
cast(abs({{ dbt_expectations.rand() }}) as {{ dbt_utils.type_float() }}) as row_value
from
dates d
cross join
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ add_row_values as (

select
cast(d.date_hour as {{ dbt_expectations.type_datetime() }}) as date_hour,
cast(floor(100 * r.generated_number) as {{ dbt_utils.type_int() }}) as row_value
cast(abs({{ dbt_expectations.rand() }}) as {{ dbt_utils.type_float() }}) as row_value
from
dates d
cross join
Expand Down

0 comments on commit fd53524

Please sign in to comment.