From 7a2a5e3bc0a725b7f642140168becf4e71bc0d98 Mon Sep 17 00:00:00 2001 From: Deanna Minnick Date: Wed, 12 Oct 2022 10:22:07 -0400 Subject: [PATCH 1/2] fix syntax errors --- integration_tests/models/sql/test_safe_divide.sql | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 From 5eba82b7ac3256d3b8789206fb717ee9377ee342 Mon Sep 17 00:00:00 2001 From: Deanna Minnick Date: Wed, 12 Oct 2022 10:30:42 -0400 Subject: [PATCH 2/2] remove whitespace in seed file --- .../data/sql/data_safe_divide_numerator_expressions.csv | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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