Skip to content

Commit 61b1be5

Browse files
graciegoheenb-per
authored andcommitted
define column types in yml file
1 parent 7d9d593 commit 61b1be5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
fct_name,column_name,id_to_exclude,comment
2-
"","","",""
1+
fct_name,column_name,id_to_exclude,comment

seeds/seeds.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
3+
seeds:
4+
- name: dbt_project_evaluator_exceptions
5+
config:
6+
column_types:
7+
fct_name: "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"
8+
column_name: "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"
9+
id_to_exclude: "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"
10+
comment: "{{ 'varchar' if target.type in ['redshift', 'postgres', 'snowflake'] else 'string' }}"

0 commit comments

Comments
 (0)