sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

Fix: Include column types in Databricks materialized views with comments

Open afredojala opened this issue 2 months ago • 1 comments

Summary

  • Fixes an issue where Databricks materialized views with column comments were missing column type definitions
  • Databricks requires column types to be explicitly specified in CREATE MATERIALIZED VIEW statements when column comments are present

Technical Details

The fix overrides the is_view parameter to False when building column definitions for materialized views that have column comments. This ensures the base class includes column types in the schema definition, which Databricks requires for this scenario.

Let me know if we should take do another approach for this.

afredojala avatar Nov 05 '25 08:11 afredojala

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Nov 05 '25 08:11 CLAassistant