Skip to content

Commit

Permalink
fix syntax errors (#705)
Browse files Browse the repository at this point in the history
* fix syntax errors

* remove whitespace in seed file
  • Loading branch information
deanna-minnick authored Oct 13, 2022
1 parent 4b31a72 commit 38df969
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ numerator_1,numerator_2,denominator,output
0,0,0,
3,4,,
,6,14,
2,5,2,5

2,5,2,5
8 changes: 5 additions & 3 deletions integration_tests/models/sql/test_safe_divide.sql
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

with data_safe_divide as (

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

),

data_safe_divide_numerator_expressions (
data_safe_divide_numerator_expressions as (

select * from {{ ref('data_safe_divide_numerator_expressions') }}
),

data_safe_divide_denominator_expressions (
data_safe_divide_denominator_expressions as (

select * from {{ ref('data_safe_divide_denominator_expressions') }}
)
Expand All @@ -26,11 +26,13 @@ union all
select
{{ dbt_utils.safe_divide('numerator_1 * numerator_2', 'denominator') }} as actual,
output as expected

from data_safe_divide_numerator_expressions

union all

select
{{ dbt_utils.safe_divide('numerator', 'denominator_1 * denominator_2') }} as actual,
output as expected

from data_safe_divide_denominator_expressions

0 comments on commit 38df969

Please sign in to comment.