diff --git a/.changes/unreleased/Features-20230926-134728.yaml b/.changes/unreleased/Features-20230926-134728.yaml index 975b45749eb..9b1e3157208 100644 --- a/.changes/unreleased/Features-20230926-134728.yaml +++ b/.changes/unreleased/Features-20230926-134728.yaml @@ -1,5 +1,5 @@ kind: Features -body: Raise a wanring when a contracted model has a numeric field without scale defined +body: Raise a warning when a contracted model has a numeric field without scale defined time: 2023-09-26T13:47:28.645383-05:00 custom: Author: emmyoop diff --git a/core/dbt/include/global_project/macros/adapters/columns.sql b/core/dbt/include/global_project/macros/adapters/columns.sql index 44c8942a667..e1099649cf0 100644 --- a/core/dbt/include/global_project/macros/adapters/columns.sql +++ b/core/dbt/include/global_project/macros/adapters/columns.sql @@ -49,7 +49,6 @@ {%- if col['data_type'] is not defined -%} {%- do col_err.append(col['name']) -%} {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#} - {#- elif api.Column.create(col['name'], col['data_type'].strip()).is_numeric() -#} {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%} {%- do col_naked_numeric.append(col['name']) -%} {%- endif -%}