Skip to content

Commit fbde84a

Browse files
Fix: Only check if source snapshot is forward_only in table diff (#4592)
1 parent c49bed2 commit fbde84a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlmesh/core/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ def table_diff(
17181718
if target_snapshot and source_snapshot:
17191719
if (source_snapshot.fingerprint != target_snapshot.fingerprint) and (
17201720
(source_snapshot.version != target_snapshot.version)
1721-
or (source_snapshot.is_forward_only or target_snapshot.is_forward_only)
1721+
or source_snapshot.is_forward_only
17221722
):
17231723
# Compare the virtual layer instead of the physical layer because the virtual layer is guaranteed to point
17241724
# to the correct/active snapshot for the model in the specified environment, taking into account things like dev previews

0 commit comments

Comments
 (0)