From 28d2a0f68675dade8d29f22510f4c0599877353f Mon Sep 17 00:00:00 2001 From: Iaroslav Zeigerman Date: Thu, 26 Jun 2025 14:24:18 -0700 Subject: [PATCH] Chore: Warn user about interval expansion only if the model is incremental --- sqlmesh/core/snapshot/definition.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sqlmesh/core/snapshot/definition.py b/sqlmesh/core/snapshot/definition.py index 573d3bc75d..7391d57e72 100644 --- a/sqlmesh/core/snapshot/definition.py +++ b/sqlmesh/core/snapshot/definition.py @@ -783,7 +783,9 @@ def get_removal_interval( # only warn if the requested removal interval was a subset of the actual model intervals and was automatically expanded # if the requested interval was the same or wider than the actual model intervals, no need to warn - if requested_start > expanded_start or requested_end < expanded_end: + if ( + requested_start > expanded_start or requested_end < expanded_end + ) and self.is_incremental: from sqlmesh.core.console import get_console get_console().log_warning(