From 6f8f7a767d5a84104ae6feeecac2d91e97a4eb45 Mon Sep 17 00:00:00 2001 From: Shubham Dhal Date: Mon, 27 Apr 2026 14:50:51 +0530 Subject: [PATCH] test: add replace_where coverage to incremental column-order tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes the regression-coverage gap that allowed #1289 to ship — the existing file covered merge / append / insert_overwrite but not replace_where, the strategy reported in #1289 and fixed in #1348. Co-authored-by: Isaac --- .../test_incremental_column_order.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/functional/adapter/incremental/test_incremental_column_order.py b/tests/functional/adapter/incremental/test_incremental_column_order.py index 39b29f91a..e1e6d52c8 100644 --- a/tests/functional/adapter/incremental/test_incremental_column_order.py +++ b/tests/functional/adapter/incremental/test_incremental_column_order.py @@ -202,3 +202,31 @@ def project_config_update(self): "+partition_by": "status", } } + + +class TestIncrementalColumnOrderReplaceWhere(TestIncrementalColumnOrderBase): + """Test column order with replace_where strategy""" + + @pytest.fixture(scope="class") + def project_config_update(self): + return { + "models": { + "+incremental_strategy": "replace_where", + "+incremental_predicates": "id is not null", + } + } + + +class TestIncrementalColumnOrderReplaceWhereV2( + MaterializationV2Mixin, TestIncrementalColumnOrderBase +): + """Test column order with replace_where strategy (V2 materialization)""" + + @pytest.fixture(scope="class") + def project_config_update(self): + return { + "models": { + "+incremental_strategy": "replace_where", + "+incremental_predicates": "id is not null", + } + }