Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion integration_tests/tests/test_exposure_schema_validity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions macros/utils/data_types/data_type_list.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down