fix(low-code cdk): fix partition router validation for async retriever#421
Conversation
📝 WalkthroughWalkthroughThe changes update the control flow in the Changes
Sequence Diagram(s)sequenceDiagram
participant F as ModelToComponentFactory
participant B as _build_stream_slicer_from_partition_router
participant E as Error Handler
F->>B: Call(_build_stream_slicer_from_partition_router(retriever_model, config))
B-->>F: Return stream_slicer
alt Partition router active & stream_slicer is not set
F->>E: Raise ValueError("Per partition state is not supported yet for AsyncRetriever")
else Stream slicer is valid or not a partition router
F->>F: Continue normal processing
end
Would you like any additional details or further diagrams to better illustrate the modified control flow, wdyt? Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (2)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This PR fixes an issue with
partition_routervalidation for AsyncRetriever and allows creating a slicer whenstream_slicer_from_partition_routeris built.link to thread - https://airbytehq-team.slack.com/archives/C02U9R3AF37/p1741883530973919