Skip to content

Commit

Permalink
pull in new basclass and run test, and update local version of macro …
Browse files Browse the repository at this point in the history
…for add_column for column quoting
  • Loading branch information
McKnight-42 committed Jul 16, 2024
1 parent 2a31d3f commit b2cae17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbt/include/spark/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@

{% if add_columns %} add columns {% endif %}
{% for column in add_columns %}
{{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}
{{ adapter.quote(column.name )}} {{ column.data_type }}{{ ',' if not loop.last }}
{% endfor %}

{%- endset -%}
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# TODO: how to automate switching from develop to version branches?
git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core
git+https://github.com/dbt-labs/dbt-common.git
git+https://github.com/dbt-labs/dbt-adapters.git
git+https://github.com/dbt-labs/dbt-adapters.git@mcknight/ct-2819
git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter

# dev
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from dbt.tests.adapter.incremental.test_incremental_on_schema_change import (
BaseIncrementalOnSchemaChangeSetup,
BaseIncrementalCaseSenstivityOnSchemaChange,
)


Expand Down Expand Up @@ -80,3 +81,7 @@ def test_run_incremental_append_new_columns(self, project):
def test_run_incremental_sync_all_columns(self, project):
self.run_incremental_sync_all_columns(project)
self.run_incremental_sync_remove_only(project)


class TestIncrementalCaseSenstivityOnSchemaChange(BaseIncrementalCaseSenstivityOnSchemaChange):
pass

0 comments on commit b2cae17

Please sign in to comment.