From 776b974442ce9bc24ac8fa77a34737e2998e0958 Mon Sep 17 00:00:00 2001 From: Anatolii Yatsuk Date: Thu, 6 Jun 2024 20:07:52 +0300 Subject: [PATCH] Add comment for reading parent stream --- .../declarative/partition_routers/substream_partition_router.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airbyte-cdk/python/airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py b/airbyte-cdk/python/airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py index 732697a2a3fa..f7bedf403e77 100644 --- a/airbyte-cdk/python/airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py +++ b/airbyte-cdk/python/airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py @@ -138,6 +138,8 @@ def stream_slices(self) -> Iterable[StreamSlice]: # we need to read all records for slice to update the parent stream cursor stream_slices_for_parent = [] + + # only stream_slice param is used in the declarative stream for parent_record in parent_stream.read_records( sync_mode=SyncMode.full_refresh, cursor_field=None, stream_slice=parent_stream_slice, stream_state=None ):