Skip to content

Commit 4cfcfc8

Browse files
committed
Removes unnecessary nested statement
1 parent c1ec990 commit 4cfcfc8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sqlmesh/core/engine_adapter/databricks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,6 @@ def _build_column_defs(
405405
# in CREATE MATERIALIZED VIEW statements. Override is_view to False to force
406406
# column types to be included when comments are present.
407407
if is_view and column_descriptions:
408-
engine_supports_schema_comments = self.COMMENT_CREATION_VIEW.supports_schema_def
409-
if engine_supports_schema_comments and self.comments_enabled:
410-
is_view = False
408+
is_view = False
411409

412410
return super()._build_column_defs(target_columns_to_types, column_descriptions, is_view)

0 commit comments

Comments
 (0)