Skip to content

Commit

Permalink
Use mixed-case column names for all columns
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 committed Jun 26, 2024
1 parent cf6bfd8 commit aa75ad7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion integration_tests/data/sql/data_unpivot_quote.csv
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion integration_tests/data/sql/data_unpivot_quote_expected.csv
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 4 additions & 4 deletions integration_tests/models/sql/test_unpivot_quote.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) }}

0 comments on commit aa75ad7

Please sign in to comment.