Open GtheSheep opened 2 weeks ago
I believe this is blocked right now. When I was testing column comments on MVs, I hit the same issue as you, and in fact, couldn't get them to stick on create either (this might have subsequently been fixed, since that was 4 months ago).
I've reached out internally to find out what the plan is about this.
Describe the bug
Seems related to #104 - Setting
persist_docs
on amaterialized_view
causes the execution of anALTER TABLE
statement, but this fails on materialized views,ALTER VIEW
doesn't support comments, so would need to be added during creation.Steps To Reproduce
config.materialized = 'materialized_view
persist_docs = true
Expected behavior
The MVW to be created with comments on each column from the dbt yml
Screenshots and log output
[EXPECT_TABLE_NOT_VIEW.NO_ALTERNATIVE] 'ALTER TABLE ... CHANGE COLUMN' expects a table but <mvw location> is a view
System information
The output of
dbt --version
:Python 3.10.12
Additional context
Happy to contribute if someone could point me towards a preferred approach for this!