diff --git a/integration_tests/data/sql/data_safe_divide_numerator_expressions.csv b/integration_tests/data/sql/data_safe_divide_numerator_expressions.csv index 4cb2a788..2673d9b2 100644 --- a/integration_tests/data/sql/data_safe_divide_numerator_expressions.csv +++ b/integration_tests/data/sql/data_safe_divide_numerator_expressions.csv @@ -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 \ No newline at end of file diff --git a/integration_tests/models/sql/test_safe_divide.sql b/integration_tests/models/sql/test_safe_divide.sql index ceaf62e6..34624787 100644 --- a/integration_tests/models/sql/test_safe_divide.sql +++ b/integration_tests/models/sql/test_safe_divide.sql @@ -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') }} ) @@ -26,6 +26,7 @@ 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 @@ -33,4 +34,5 @@ union all select {{ dbt_utils.safe_divide('numerator', 'denominator_1 * denominator_2') }} as actual, output as expected + from data_safe_divide_denominator_expressions \ No newline at end of file