Skip to content

Commit ecf8184

Browse files
authored
Chore: Improve the warning message when missing a schema while optimizing a model query (#1224)
1 parent f453a70 commit ecf8184

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlmesh/core/renderer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def _optimize_query(self, query: exp.Subqueryable) -> exp.Subqueryable:
381381
if self._model_name is not None:
382382
logger.warning(
383383
"Query cannot be optimized due to missing schema for model '%s'. "
384-
"Make sure that the model '%s' can be rendered at parse time",
384+
"Run `sqlmesh create_external_models` and / or make sure that the model '%s' can be rendered at parse time",
385385
dependency,
386386
self._model_name,
387387
)

0 commit comments

Comments
 (0)