Skip to content

Commit 323cc2d

Browse files
authored
test: add replace_where coverage to incremental column-order tests (#1427)
Closes regression-coverage gap from #1289 / #1348. Adds two test classes mirroring the existing merge / append / insert_overwrite pattern.
1 parent c9c9456 commit 323cc2d

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

tests/functional/adapter/incremental/test_incremental_column_order.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,31 @@ def project_config_update(self):
202202
"+partition_by": "status",
203203
}
204204
}
205+
206+
207+
class TestIncrementalColumnOrderReplaceWhere(TestIncrementalColumnOrderBase):
208+
"""Test column order with replace_where strategy"""
209+
210+
@pytest.fixture(scope="class")
211+
def project_config_update(self):
212+
return {
213+
"models": {
214+
"+incremental_strategy": "replace_where",
215+
"+incremental_predicates": "id is not null",
216+
}
217+
}
218+
219+
220+
class TestIncrementalColumnOrderReplaceWhereV2(
221+
MaterializationV2Mixin, TestIncrementalColumnOrderBase
222+
):
223+
"""Test column order with replace_where strategy (V2 materialization)"""
224+
225+
@pytest.fixture(scope="class")
226+
def project_config_update(self):
227+
return {
228+
"models": {
229+
"+incremental_strategy": "replace_where",
230+
"+incremental_predicates": "id is not null",
231+
}
232+
}

0 commit comments

Comments
 (0)