Materialization v2 with update_via_alter for nonexistent columns
Describe the bug
When you use materialization_v2 with views with update_via_alter it attempts to push all comments from yml to databricks regardless if they exist.
Steps To Reproduce
- Create a model (view). In relevant .yml add a column which does not exist in .sql
- Run the model (creation)
- Run the model (again)
Expected behavior
During both run the nonexistent columns are skiped when transfering their comments to DBX.
System information
We use dbt-databricks 1.10.14, dt-core 1.10.13 and tested it for dbt 1.11 as well.
Additional context
Might be solved by https://github.com/databricks/dbt-databricks/pull/1358?
Hi @karasda Thanks for bringing this up. Will look into it.
Hi @karasda This looks like a bug. I will review the associated PR. Thanks for the PR.
It's not my PR (sorry) but I really hope that it would solve our issue :-) We plan to do the version bump soon and the earlier fixed gets merged to stable version, the higher chance that it will be included in our upgrade. Thanks for looking into it!