From aa75ad7f23df277c0b70ce95492bf753e0cf8004 Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Wed, 26 Jun 2024 14:49:32 -0600 Subject: [PATCH] Use mixed-case column names for all columns --- integration_tests/data/sql/data_unpivot_quote.csv | 2 +- .../data/sql/data_unpivot_quote_expected.csv | 2 +- integration_tests/models/sql/test_unpivot_quote.sql | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/integration_tests/data/sql/data_unpivot_quote.csv b/integration_tests/data/sql/data_unpivot_quote.csv index 958e05f3..a5138d9f 100644 --- a/integration_tests/data/sql/data_unpivot_quote.csv +++ b/integration_tests/data/sql/data_unpivot_quote.csv @@ -1,4 +1,4 @@ -customer_id,created_at,sTaTuS,SEGMENT,name +Customer_Id,Created_At,sTaTuS,SEGMENT,Name 123,2017-01-01,active,tier 1,name 1 234,2017-02-01,active,tier 3,name 3 567,2017-03-01,churned,tier 2,name 2 diff --git a/integration_tests/data/sql/data_unpivot_quote_expected.csv b/integration_tests/data/sql/data_unpivot_quote_expected.csv index 851ca429..0704f1f8 100644 --- a/integration_tests/data/sql/data_unpivot_quote_expected.csv +++ b/integration_tests/data/sql/data_unpivot_quote_expected.csv @@ -1,4 +1,4 @@ -customer_id,created_at,prop,val +Customer_Id,Created_At,Prop,Val 123,"2017-01-01","SEGMENT","tier 1" 123,"2017-01-01","sTaTuS","active" 234,"2017-02-01","SEGMENT","tier 3" diff --git a/integration_tests/models/sql/test_unpivot_quote.sql b/integration_tests/models/sql/test_unpivot_quote.sql index d5fdfcf1..feaac6af 100644 --- a/integration_tests/models/sql/test_unpivot_quote.sql +++ b/integration_tests/models/sql/test_unpivot_quote.sql @@ -2,9 +2,9 @@ {{ dbt_utils.unpivot( relation=ref('data_unpivot_quote'), cast_to=type_string(), - exclude=['customer_id', 'created_at'], - remove=['name'], - field_name='prop', - value_name='val', + exclude=['Customer_Id', 'Created_At'], + remove=['Name'], + field_name='Prop', + value_name='Val', quote_identifiers=True, ) }}