diff --git a/integration_tests/tests/test_exposure_schema_validity.py b/integration_tests/tests/test_exposure_schema_validity.py index 5180a6c4e..fb5dae07e 100644 --- a/integration_tests/tests/test_exposure_schema_validity.py +++ b/integration_tests/tests/test_exposure_schema_validity.py @@ -57,7 +57,7 @@ def test_exposure_schema_validity_correct_columns_and_types( ): explicit_target_for_bigquery = ( "other" - if dbt_project.dbt_runner.target in ["bigquery", "snowflake", ""] + if dbt_project.dbt_runner.target in ["bigquery", "snowflake", "dremio", ""] else "string" ) DBT_TEST_ARGS = { @@ -130,6 +130,7 @@ def test_exposure_schema_validity_invalid_type_name_present_in_error( "databricks_catalog": "int", "athena": "int", "trino": "int", + "dremio": "int", }.get(dbt_project.dbt_runner.target, "numeric") DBT_TEST_ARGS = { "node": "models.exposures_test", diff --git a/macros/utils/data_types/data_type_list.sql b/macros/utils/data_types/data_type_list.sql index d09cc87bf..4dc9bd2bf 100644 --- a/macros/utils/data_types/data_type_list.sql +++ b/macros/utils/data_types/data_type_list.sql @@ -153,10 +153,10 @@ {% endmacro %} {% macro dremio__data_type_list(data_type) %} - {% set string_list = ['VARCHAR', 'CHARACTER VARYING'] | list %} - {% set numeric_list = ['INT','INTEGER','BIGINT','DOUBLE','DECIMAL','FLOAT','SMALLINT','TINYINT'] | list %} - {% set timestamp_list = ['DATE','TIME','TIMESTAMP', 'TIME WITH TIME ZONE', 'TIMESTAMP WITH TIME ZONE'] | list %} - {% set boolean_list = ['BOOLEAN', 'BIT'] | list %} + {% set string_list = ['varchar', 'character varying'] | list %} + {% set numeric_list = ['int','integer','bigint','double','decimal','float','smallint','tinyint'] | list %} + {% set timestamp_list = ['date','time','timestamp', 'time with time zone', 'timestamp with time zone'] | list %} + {% set boolean_list = ['boolean', 'bit'] | list %} {%- if data_type == 'string' %} {{ return(string_list) }}