define column types in yml file

This commit is contained in:
Grace Goheen
2022-08-18 09:01:15 -04:00
parent fe785901ea
commit cbf53cce90
2 changed files with 11 additions and 2 deletions

View File

@@ -1,2 +1 @@
fct_name,column_name,id_to_exclude,comment
"","","",""
fct_name,column_name,id_to_exclude,comment
1 fct_name column_name id_to_exclude comment

10
seeds/seeds.yml Normal file
View File

@@ -0,0 +1,10 @@
version: 2
seeds:
- name: dbt_project_evaluator_exceptions
config:
column_types:
fct_name: "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"
column_name: "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"
id_to_exclude: "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"
comment: "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"