Skip to content

Commit afceceb

Browse files
Add 'numeric' to data type lists for targets missing it (spark, athena, trino, clickhouse, dremio)
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
1 parent 4ddb9c6 commit afceceb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

macros/utils/data_types/data_type_list.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
{% macro spark__data_type_list(data_type) %}
7272

7373
{% set string_list = ['string'] | list %}
74-
{% set numeric_list = ['int','bigint','smallint','tinyint','float','double','long','short','decimal'] | list %}
74+
{% set numeric_list = ['int','bigint','smallint','tinyint','float','double','long','short','decimal','numeric'] | list %}
7575
{% set timestamp_list = ['timestamp','date','timestamp_ltz','timestamp_ntz'] | list %}
7676
{% set boolean_list = ["boolean"] | list %}
7777

@@ -93,7 +93,7 @@
9393
{% macro athena__data_type_list(data_type) %}
9494

9595
{% set string_list = ['string', 'varchar', 'char'] | list %}
96-
{% set numeric_list = ['int','integer','bigint','smallint','tinyint','float','real','double','decimal'] | list %}
96+
{% set numeric_list = ['int','integer','bigint','smallint','tinyint','float','real','double','decimal','numeric'] | list %}
9797
{% set timestamp_list = ['timestamp','date'] | list %}
9898
{% set boolean_list = ["boolean"] | list %}
9999

@@ -114,7 +114,7 @@
114114
{% macro trino__data_type_list(data_type) %}
115115

116116
{% set string_list = ['string', 'varchar', 'char'] | list %}
117-
{% set numeric_list = ['int','integer','bigint','smallint','tinyint','float','real','double','decimal'] | list %}
117+
{% set numeric_list = ['int','integer','bigint','smallint','tinyint','float','real','double','decimal','numeric'] | list %}
118118
{% set timestamp_list = ['timestamp','date'] | list %}
119119
{% set boolean_list = ["boolean"] | list %}
120120

@@ -134,7 +134,7 @@
134134

135135
{% macro clickhouse__data_type_list(data_type) %}
136136
{% set string_list = ['String', 'FixedString', 'LowCardinality(String)'] | list %}
137-
{% set numeric_list = ['Int8', 'Int16', 'Int32', 'Int64', 'UInt8', 'UInt16', 'UInt32', 'UInt64', 'Float32', 'Float64', 'Decimal', 'Decimal32', 'Decimal64', 'Decimal128'] | list %}
137+
{% set numeric_list = ['Int8', 'Int16', 'Int32', 'Int64', 'UInt8', 'UInt16', 'UInt32', 'UInt64', 'Float32', 'Float64', 'Decimal', 'Decimal32', 'Decimal64', 'Decimal128', 'numeric'] | list %}
138138
{% set timestamp_list = ['DateTime', 'Date', 'Date32'] | list %}
139139
{% set boolean_list = ["UInt8","Bool"] | list %}
140140

@@ -154,7 +154,7 @@
154154

155155
{% macro dremio__data_type_list(data_type) %}
156156
{% set string_list = ['varchar', 'character varying'] | list %}
157-
{% set numeric_list = ['int','integer','bigint','double','decimal','float','smallint','tinyint'] | list %}
157+
{% set numeric_list = ['int','integer','bigint','double','decimal','float','smallint','tinyint','numeric'] | list %}
158158
{% set timestamp_list = ['date','time','timestamp', 'time with time zone', 'timestamp with time zone'] | list %}
159159
{% set boolean_list = ['boolean', 'bit'] | list %}
160160

0 commit comments

Comments
 (0)