Skip to content

Commit 2cdb9f2

Browse files
committed
Warn instead of error when col description provided for non-existent col
1 parent 101e73b commit 2cdb9f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqlmesh/core/model/meta.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ def _column_descriptions_validator(
249249
if columns_to_types:
250250
for column_name in col_descriptions:
251251
if column_name not in columns_to_types:
252-
raise ConfigError(
252+
from sqlmesh.core.console import get_console
253+
254+
get_console().log_warning(
253255
f"In model '{info.data['name']}', a description is provided for column '{column_name}' but it is not a column in the model."
254256
)
255257

0 commit comments

Comments
 (0)