diff --git a/dbt/include/redshift/macros/adapters.sql b/dbt/include/redshift/macros/adapters.sql index 5da047f58..e8cfe2262 100644 --- a/dbt/include/redshift/macros/adapters.sql +++ b/dbt/include/redshift/macros/adapters.sql @@ -293,7 +293,7 @@ {% for column in add_columns %} {% set sql -%} - alter {{ relation.type }} {{ relation }} add column {{ column.name }} {{ column.data_type }} + alter {{ relation.type }} {{ relation }} add column {{ adapter.quote(column.name) }} {{ column.data_type }} {% endset %} {% do run_query(sql) %} {% endfor %} @@ -304,7 +304,7 @@ {% for column in remove_columns %} {% set sql -%} - alter {{ relation.type }} {{ relation }} drop column {{ column.name }} + alter {{ relation.type }} {{ relation }} drop column {{ adapter.quote(column.name) }} {% endset %} {% do run_query(sql) %} {% endfor %} diff --git a/dev-requirements.txt b/dev-requirements.txt index c82ea37ca..1ac8138cc 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,6 +1,6 @@ # install latest changes in dbt-core + dbt-postgres -git+https://github.com/dbt-labs/dbt-adapters.git -git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter +git+https://github.com/dbt-labs/dbt-adapters.git@mcknight/ct-2819 +git+https://github.com/dbt-labs/dbt-adapters.git@mcknight/ct-2819#subdirectory=dbt-tests-adapter git+https://github.com/dbt-labs/dbt-common.git git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core git+https://github.com/dbt-labs/dbt-postgres.git diff --git a/tests/functional/adapter/incremental/test_incremental_on_schema_change.py b/tests/functional/adapter/incremental/test_incremental_on_schema_change.py index 7b73d212b..0c9f9a15a 100644 --- a/tests/functional/adapter/incremental/test_incremental_on_schema_change.py +++ b/tests/functional/adapter/incremental/test_incremental_on_schema_change.py @@ -1,7 +1,12 @@ from dbt.tests.adapter.incremental.test_incremental_on_schema_change import ( BaseIncrementalOnSchemaChange, + BaseIncrementalCaseSenstivityOnSchemaChange, ) class TestIncrementalOnSchemaChange(BaseIncrementalOnSchemaChange): pass + + +class TestIncrementalCaseSenstivityOnSchemaChange(BaseIncrementalCaseSenstivityOnSchemaChange): + pass