Repository navigation
feat: add SPLIT_REQUEST_WINDOW action for adaptive request-window splitting #1171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Kaizer (kaizerch)
merged 27 commits into
main
from
kaizerch/feat/17174-airbyte-python-cdk-adaptive-request-window-reduction
Sep 28, 2026
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
ba68440
feat(cdk): add WindowReducible protocol and request-window-reduction …
kaizerch 4e2ada4
feat(cdk): add REDUCE_REQUEST_WINDOW response action and dispatch
kaizerch 54d384d
feat(cdk): wire REDUCE_REQUEST_WINDOW into SimpleRetriever and the fa…
kaizerch 77d3de1
fix(cdk): correct associated_slice on split records, bound split recu…
kaizerch 82cba07
Apply batched suggestions from code review
kaizerch d02ebbf
style: fix ruff format after applying Copilot autofix suggestions
kaizerch 51e5e61
feat(declarative): log request window reductions in SimpleRetriever
kaizerch 1f5912e
refactor(cdk): rename request window reduction to splitting (Phase 1)
kaizerch ab74c3f
fix(cdk): classify request window split exhaustion as transient_error…
kaizerch f962c36
feat(cdk): tighten request window splitting validation, replace max_s…
kaizerch 4110033
Merge branch 'kaizerch/feat/17174-airbyte-python-cdk-adaptive-request…
kaizerch 1df603f
refactor(cdk): drop the WindowReducible protocol (Phase 5)
kaizerch d2e977c
style(cdk): shorten request window splitting descriptions and comments
kaizerch 92ec495
Auto-committed changes from Poe command `build`
octavia-bot[bot] 37697f6
fix(cdk): always replay after a partial request window split, drop on…
kaizerch 09ffc2c
Merge branch 'kaizerch/feat/17174-airbyte-python-cdk-adaptive-request…
kaizerch c0cf4a5
fix(declarative): drop conint/confloat annotations from generated mod…
kaizerch 541dab5
fix(declarative): restore ge=0 constraint on jitter_range_in_seconds …
kaizerch e67caed
fix(cdk): restore ge/gt Field constraints dropped when removing conin…
kaizerch 2f501f3
Merge branches 'kaizerch/feat/17174-airbyte-python-cdk-adaptive-reque…
kaizerch 418334e
fix(declarative): dedupe ge constraint on jitter_range_in_seconds aft…
kaizerch e6fd13f
fix(cdk): address Anatolii's review - failure type, min_split_window …
kaizerch c9c770e
Merge branch 'main' into kaizerch/feat/17174-airbyte-python-cdk-adapt…
kaizerch 629d151
Merge branch 'main' into kaizerch/feat/17174-airbyte-python-cdk-adapt…
kaizerch 04431f3
fixes after merge conflicts
kaizerch 2ca16ce
Merge remote-tracking branch 'origin/main' into kaizerch/feat/17174-a…
kaizerch 0c8d503
fix: restore missing RequestWindowSplitRequiredException import
kaizerch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
411 changes: 219 additions & 192 deletions
411
airbyte_cdk/sources/declarative/models/declarative_component_schema.py
Large diffs are not rendered by default.
Oops, something went wrong.
255 changes: 255 additions & 0 deletions
255
airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
airbyte_cdk/sources/declarative/retrievers/request_window_splitting.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # | ||
| # Copyright (c) 2026 Airbyte, Inc., all rights reserved. | ||
| # | ||
|
|
||
| import datetime | ||
| from dataclasses import dataclass | ||
| from typing import Optional | ||
|
|
||
|
|
||
| @dataclass(frozen=True) | ||
| class RequestWindowSplitting: | ||
| """ | ||
| Configuration for the `request_window_splitting` retriever field - created once per stream and shared, | ||
| mirroring `PageSizeReduction`. Unlike `PageSizeReducer`, there is no per-partition mutable counterpart: a | ||
| split window is either split again (recursion) or the sync fails, so a plain config object is enough. | ||
| """ | ||
|
|
||
| failure_message: Optional[str] = None | ||
| # Independent of, and typically looser than, the cursor's own granularity floor - useful when a cursor | ||
| # could split further but the API's rate limit makes many small requests worse than a few large ones. | ||
| min_split_window: Optional[datetime.timedelta] = None | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.