Skip to content

Commit 688229a

Browse files
Chore: Info instead of warn for conditional properties assignment
1 parent 9eba5c1 commit 688229a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sqlmesh/core/model/definition.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,10 +681,10 @@ def _render(expression: exp.Expression) -> exp.Expression | None:
681681
# in turn makes @this_model available in the evaluation context
682682
rendered_exprs = self._statement_renderer(expression).render(**render_kwargs)
683683

684-
# Warn instead of raising for cases where a property is conditionally assigned
684+
# Inform instead of raising for cases where a property is conditionally assigned
685685
if not rendered_exprs or rendered_exprs[0].sql().lower() in {"none", "null"}:
686-
logger.warning(
687-
f"Expected rendering '{expression.sql(dialect=self.dialect)}' to return an expression"
686+
logger.info(
687+
f"Rendering '{expression.sql(dialect=self.dialect)}' did not return an expression"
688688
)
689689
return None
690690

0 commit comments

Comments
 (0)