Skip to content

dbt run fails when you change the materialization type #221

@sdebruyn

Description

@sdebruyn

When you first materialize a model as a view and then later on change your config to materialize that exact same model as a table, it will fail because dbt-fabric tries to drop the model as being a table while it was a view. Other adapters handle this gracefully by dropping the view without issues.

08:10:20 fabric adapter: Database error: ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Cannot use DROP TABLE with 'dbt_sdebruyn.locations__dbt_backup' because 'dbt_sdebruyn.locations__dbt_backup' is a view. Use DROP VIEW. (3705)

Metadata

Metadata

Assignees

Labels

reproinvestigating the issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions