Skip to content

Commit 52f516f

Browse files
fix condition test
1 parent a64dfae commit 52f516f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sqlmesh/core/engine_adapter/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,14 +1717,14 @@ def remove_managed_columns(
17171717
cleanup_ts = to_time_column(start, time_data_type, self.dialect, nullable=True)
17181718

17191719
# Delete records that were created at or after cleanup point
1720-
self.delete_from(table_name=target_table, where=valid_from_col >= cleanup_ts)
1720+
self.delete_from(table_name=target_table, where=valid_from_col > cleanup_ts)
17211721

17221722
# "Re-open" records that were closed at or after cleanup point
17231723
self.update_table(
17241724
table_name=target_table,
17251725
properties={valid_to_col.name: exp.Null()},
17261726
where=exp.and_(
1727-
valid_to_col >= cleanup_ts,
1727+
valid_to_col > cleanup_ts,
17281728
),
17291729
)
17301730

tests/core/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6612,7 +6612,7 @@ def test_scd_type_2_restatement(init_and_plan_context: t.Callable):
66126612
"prod",
66136613
skip_tests=True,
66146614
restate_models=["memory.hr_system.employee_history"],
6615-
start="2023-01-08 15:11:00",
6615+
start="2023-01-08 15:09:00",
66166616
).build()
66176617
context.apply(plan)
66186618
restated_data = context.engine_adapter.fetchdf(query)

0 commit comments

Comments
 (0)