Skip to content

Commit 28d2a0f

Browse files
committed
Chore: Warn user about interval expansion only if the model is incremental
1 parent 570274c commit 28d2a0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqlmesh/core/snapshot/definition.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,9 @@ def get_removal_interval(
783783

784784
# only warn if the requested removal interval was a subset of the actual model intervals and was automatically expanded
785785
# if the requested interval was the same or wider than the actual model intervals, no need to warn
786-
if requested_start > expanded_start or requested_end < expanded_end:
786+
if (
787+
requested_start > expanded_start or requested_end < expanded_end
788+
) and self.is_incremental:
787789
from sqlmesh.core.console import get_console
788790

789791
get_console().log_warning(

0 commit comments

Comments
 (0)