Repository: airbytehq/airbyte-python-cdk
Pull request #515: fix(low-code): set transform_before_filtering from manifest if client_side_incremental_sync=true
Author: login: darynaishchenko
Labels: name: bug
description: Something isn't working
Created: 2025-04-28T16:01:00Z | Merged: 2025-04-29T10:17:23Z

For client side incremental sync use `transform_before_filtering` from manifest, default True if not provided 

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Bug Fixes**
  - Improved handling of the `transform_before_filtering` setting to ensure consistent behavior based on configuration without altering internal state.

- **Tests**
  - Added tests to verify the correct behavior of the `transform_before_filtering` option with client-side incremental syncs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->


Diff:
diff --git a/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py b/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py
index 4d4cd9440..7feca1980 100644
--- a/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py
+++ b/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py
@@ -2827,13 +2827,9 @@ def create_record_selector(
             else None
         )
 
-        if model.transform_before_filtering is None:
-            # default to False if not set
-            model.transform_before_filtering = False
-
-        assert model.transform_before_filtering is not None  # for mypy
-
-        transform_before_filtering = model.transform_before_filtering
+        transform_before_filtering = (
+            False if model.transform_before_filtering is None else model.transform_before_filtering
+        )
         if client_side_incremental_sync:
             record_filter = ClientSideIncrementalRecordFilterDecorator(
                 config=config,
@@ -2843,7 +2839,11 @@ def create_record_selector(
                 else None,
                 **client_side_incremental_sync,
             )
-            transform_before_filtering = True
+            transform_before_filtering = (
+                True
+                if model.transform_before_filtering is None
+                else model.transform_before_filtering
+            )
 
         if model.schema_normalization is None:
             # default to no schema normalization if not set
diff --git a/unit_tests/sources/declarative/test_concurrent_declarative_source.py b/unit_tests/sources/declarative/test_concurrent_declarative_source.py
index 6af69eac5..148633014 100644
--- a/unit_tests/sources/declarative/test_concurrent_declarative_source.py
+++ b/unit_tests/sources/declarative/test_concurrent_declarative_source.py
@@ -11,6 +11,7 @@
 
 import freezegun
 import isodate
+import pytest
 from typing_extensions import deprecated
 
 from airbyte_cdk.models import (
@@ -1876,6 +1877,69 @@ def test_stream_using_is_client_side_incremental_has_cursor_state():
     assert client_side_incremental_cursor_state == expected_cursor_value
 
 
+@pytest.mark.parametrize(
+    "expected_transform_before_filtering",
+    [
+        pytest.param(
+            True,
+            id="transform before filtering",
+        ),
+        pytest.param(
+            False,
+            id="transform after filtering",
+        ),
+        pytest.param(
+            None,
+            id="default transform before filtering",
+        ),
+    ],
+)
+def test_stream_using_is_client_side_incremental_has_transform_before_filtering_according_to_manifest(
+    expected_transform_before_filtering,
+):
+    expected_cursor_value = "2024-07-01"
+    state = [
+        AirbyteStateMessage(
+            type=AirbyteStateType.STREAM,
+            stream=AirbyteStreamState(
+                stream_descriptor=StreamDescriptor(name="locations", namespace=None),
+                stream_state=AirbyteStateBlob(updated_at=expected_cursor_value),
+            ),
+        )
+    ]
+
+    manifest_with_stream_state_interpolation = copy.deepcopy(_MANIFEST)
+
+    # Enable semi-incremental on the locations stream
+    manifest_with_stream_state_interpolation["definitions"]["locations_stream"]["incremental_sync"][
+        "is_client_side_incremental"
+    ] = True
+
+    if expected_transform_before_filtering is not None:
+        manifest_with_stream_state_interpolation["definitions"]["locations_stream"]["retriever"][
+            "record_selector"
+        ]["transform_before_filtering"] = expected_transform_before_filtering
+
+    source = ConcurrentDeclarativeSource(
+        source_config=manifest_with_stream_state_interpolation,
+        config=_CONFIG,
+        catalog=_CATALOG,
+        state=state,
+    )
+    concurrent_streams, synchronous_streams = source._group_streams(config=_CONFIG)
+
+    locations_stream = concurrent_streams[2]
+    assert isinstance(locations_stream, DefaultStream)
+
+    simple_retriever = locations_stream._stream_partition_generator._partition_factory._retriever
+    record_selector = simple_retriever.record_selector
+
+    if expected_transform_before_filtering is not None:
+        assert record_selector.transform_before_filtering == expected_transform_before_filtering
+    else:
+        assert record_selector.transform_before_filtering is True
+
+
 def create_wrapped_stream(stream: DeclarativeStream) -> Stream:
     slice_to_records_mapping = get_mocked_read_records_output(stream_name=stream.name)
 


Reviews:
user: login: coderabbitai[bot]
body: **Actionable comments posted: 1**

<details>
<summary>📜 Review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 3a9d54bc88bbb725ed65f4e005a83093858c07e2 and 37516af1b2a402a155abb39a6777e0d48438f9bf.

</details>

<details>
<summary>📒 Files selected for processing (2)</summary>

* `airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py` (2 hunks)
* `unit_tests/sources/declarative/test_concurrent_declarative_source.py` (2 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🪛 GitHub Actions: Linters</summary>

<details>
<summary>unit_tests/sources/declarative/test_concurrent_declarative_source.py</summary>

[error] 5-55: Ruff: Import block is un-sorted or un-formatted. Organize imports. 1 error found, fixable with '--fix' option.

</details>

</details>

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (9)</summary>

* GitHub Check: Check: 'source-pokeapi' (skip=false)
* GitHub Check: Check: 'source-amplitude' (skip=false)
* GitHub Check: Check: 'source-shopify' (skip=false)
* GitHub Check: Check: 'source-hardcoded-records' (skip=false)
* GitHub Check: Pytest (All, Python 3.11, Ubuntu)
* GitHub Check: SDM Docker Image Build
* GitHub Check: Pytest (Fast)
* GitHub Check: Pytest (All, Python 3.10, Ubuntu)
* GitHub Check: Analyze (python)

</details>

<details>
<summary>🔇 Additional comments (2)</summary><blockquote>

<details>
<summary>airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py (1)</summary>

`2830-2846`: **Improvement to transform_before_filtering handling**

This change looks good! Instead of mutating the model attributes directly, you're now properly using a local variable with conditional expressions. This preserves any explicit value set in the manifest while still defaulting to `True` when needed for client-side incremental sync.

The approach is cleaner and respects configuration settings better. Nice work!

</details>
<details>
<summary>unit_tests/sources/declarative/test_concurrent_declarative_source.py (1)</summary>

`1880-1941`: **Well-structured test for transform_before_filtering behavior!**

This test nicely verifies that `transform_before_filtering` is correctly set from the manifest when `is_client_side_incremental=true`. The parameterized approach covers all cases elegantly - explicit True/False values and the default behavior.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: CHANGES_REQUESTED
author_association: CONTRIBUTOR
submitted_at: 2025-04-28T16:03:37Z
user: login: coderabbitai[bot]
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-04-28T16:14:15Z
user: login: brianjlai
body: 🚢 
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-04-28T22:51:06Z
user: login: tolik0
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-04-29T10:02:36Z

Review comments:
diff_hunk: @@ -2,6 +2,7 @@
 # Copyright (c) 2024 Airbyte, Inc., all rights reserved.
 #
 
+import pytest
path: unit_tests/sources/declarative/test_concurrent_declarative_source.py
user: login: coderabbitai[bot]
body: _⚠️ Potential issue_

**Import needs to be sorted according to project standards.**

The pipeline failures indicate that the import block is unsorted. Would it make more sense to move the pytest import to be with the other third-party imports (around line 13-16), wdyt?


```diff
- import pytest
import copy
import json
import math
from datetime import datetime, timedelta, timezone
from typing import Any, Dict, Iterable, List, Mapping, Optional, Tuple, Union
from unittest.mock import patch

import freezegun
import isodate
+ import pytest
from typing_extensions import deprecated
```


> Committable suggestion skipped: line range outside the PR's diff.

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 GitHub Actions: Linters</summary>

[error] 5-55: Ruff: Import block is un-sorted or un-formatted. Organize imports. 1 error found, fixable with '--fix' option.

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit -->

✅ Addressed in commit 765017f
created_at: 2025-04-28T16:03:36Z
author_association: CONTRIBUTOR
diff_hunk: @@ -2827,13 +2827,9 @@ def create_record_selector(
             else None
         )
 
-        if model.transform_before_filtering is None:
-            # default to False if not set
-            model.transform_before_filtering = False
-
-        assert model.transform_before_filtering is not None  # for mypy
path: airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py
user: login: brianjlai
body: This whole structure of an assertion in the existing code is very weird. nice to get rid of an unnecessary assert statement
created_at: 2025-04-28T22:50:49Z
author_association: CONTRIBUTOR

PR comments:
user: login: coderabbitai[bot]
created_at: 2025-04-28T16:03:33Z
body: <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- walkthrough_start -->

<details>
<summary>📝 Walkthrough</summary>

## Walkthrough

The changes update the logic for handling the `transform_before_filtering` attribute in the `create_record_selector` method within the model-to-component factory. Instead of mutating the model instance based on the attribute's value, the code now uses local variable assignment with conditional expressions to determine the correct value for `transform_before_filtering`. Additionally, a new parameterized test is added to verify that the `transform_before_filtering` attribute behaves as expected for streams configured with `is_client_side_incremental`, covering different input scenarios.

## Changes

| File(s)                                                                                      | Change Summary                                                                                                                                                                                                                                                                                                                                                                       |
|----------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py                        | Refactored the logic for determining the value of `transform_before_filtering` in the `create_record_selector` method to use local variables and conditional expressions instead of mutating the model instance. The assignment now preserves the original value unless it is `None`, in which case it defaults to `False` or `True` based on context.                          |
| unit_tests/sources/declarative/test_concurrent_declarative_source.py                         | Added a parameterized test `test_stream_using_is_client_side_incremental_has_transform_before_filtering_according_to_manifest` to verify that the `transform_before_filtering` attribute on the stream's `record_selector` matches the manifest or defaults to `True` when `is_client_side_incremental` is enabled and the attribute is not set.                                  |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant Test as Test Function
    participant Manifest as Manifest (deep copy)
    participant Source as ConcurrentDeclarativeSource
    participant Stream as DefaultStream
    participant Selector as RecordSelector

    Test->>Manifest: Enable is_client_side_incremental
    Test->>Manifest: Set transform_before_filtering (True/False/None)
    Test->>Source: Instantiate with Manifest and state
    Source->>Stream: Group streams
    Stream->>Selector: Access record_selector
    Test->>Selector: Assert transform_before_filtering as expected
```

## Possibly related PRs

- airbytehq/airbyte-python-cdk#334: Refactored the handling of the `transform_before_filtering` attribute in the `create_record_selector` method, which is directly related to the logic updated in this PR.

## Suggested labels

`bug`

## Suggested reviewers

- tolik0

Would you like to consider adding more test cases for other attributes affected by similar logic, wdyt?

</details>

<!-- walkthrough_end -->


---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 37516af1b2a402a155abb39a6777e0d48438f9bf and 765017f92d6b8754013ba268b179bb019c67d3cd.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `unit_tests/sources/declarative/test_concurrent_declarative_source.py` (2 hunks)

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (1)</summary>

* unit_tests/sources/declarative/test_concurrent_declarative_source.py

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (9)</summary>

* GitHub Check: Check: 'source-pokeapi' (skip=false)
* GitHub Check: Check: 'source-amplitude' (skip=false)
* GitHub Check: Check: 'source-shopify' (skip=false)
* GitHub Check: Check: 'source-hardcoded-records' (skip=false)
* GitHub Check: Pytest (All, Python 3.11, Ubuntu)
* GitHub Check: SDM Docker Image Build
* GitHub Check: Pytest (Fast)
* GitHub Check: Analyze (python)
* GitHub Check: Pytest (All, Python 3.10, Ubuntu)

</details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIAM3gADwAKL3wAdzAmJQBKLkQSUNwqDERY/ApmAH0BEjL/SvivGgp4DCJIWIoWSGZMeFiQlFjGL3h2SsR4JUrWhn82DFw0LwnZDAYAXiLg6Mg0tGQHAWZ1Gno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nhvw2SQOgfkOBBAEFqlMVGfwaBJJWPiEQUkGNppsiQPW8cPJph1NnA0jYBy2QaILWJOUBUcWwEuP4DwxUqBZr4ACsC7If3Mk8V4LhBMOohMoZAJI8ZExNGyK6UISgSDcAUNwMY3yPD2ISaOCdIRmQ7RFclJ9daqmNt5M2+pwpuHOI8NEfFLK60XsrdEFDOjiL9OpdslsZHywru7RMwh39iHGg6Jy9ooZ7R9EnbgJFnyWgkDnbLId9Aj0WPKH+/NSIsD5KWCeNOr52RMXWKSfwiwAAiohOX+qkOSINhzgOXFQNRsSyNz1LHzFYsao5THeubtBlU6UXShHqtVUC9gK1XvavQexGoxBSZ4/gOk3LdgCavQTKRGsEqhETuyNzCYkzkjS8wX9kAEvoFhm1RdFlnyUGJu2fdohzYwOPeUP+HU3HSO+aWM60m36ybXVMn+Sn/7bvzHFV4HW+UWNzZm9GsXvQeHhFhpMKY4Pph8Xc0JpCipjZckYRlR1mh8fley9zLrjZqlVQK12fBhVavFbqxNUr14pvoEWoOTVS1RnLZeqtkw2i1pfdU1jH7W0rA7bg1dn8+0jsHebEdo9Au4CSBtsQdBO0yarHJ9dC3sgmiwGyK1Hr3UAwda3aQGg/XdwzO6z1jmfXcg5+IKQgbHXeNDaaqVFcq7Ow6m7OykaGrp2YuwLOaAc4xvzoXJQ4c1Cl2jpL2OPtrVTDrWg/8pPIYa3LpXA3ABmAA7PeAAbGgWId4BAACY0AABYAAMnuHw3hUAIG3ABONAju7eR5ID72gXuAAcXubdx9iCHgQwwY5O0gHbx3N4fd3jtyn93tBHcCDjw733d4bcM3d47uPAh8+p4EHnkPDAI+0Btw3K3UvDceuNxAvTYwxGVBdlboAA -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=airbytehq/airbyte-python-cdk&utm_content=515):

> ‼️ **IMPORTANT**
> Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai generate unit testing code for this file.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and generate unit testing code.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->
author_association: CONTRIBUTOR
user: login: darynaishchenko
created_at: 2025-04-28T16:11:44Z
body: /autofix
> **Auto-Fix Job Info**
>
> This job attempts to auto-fix any linting or formating issues. If any fixes are made,
> those changes will be automatically committed and pushed back to the PR.
>
> Note: This job can only be run by maintainers. On PRs from forks, this command requires
> that the PR author has enabled the `Allow edits from maintainers` option.

> PR auto-fix job started... [Check job output.][1]

[1]: https://github.com/airbytehq/airbyte-python-cdk/actions/runs/14712523077
> ✅ Changes applied successfully.
author_association: CONTRIBUTOR