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 f7bedf403e77..16afc42b26a6 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 @@ -139,7 +139,7 @@ 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 + # only stream_slice param is used in the declarative stream, stream state is set in PerPartitionCursor set_initial_state for parent_record in parent_stream.read_records( sync_mode=SyncMode.full_refresh, cursor_field=None, stream_slice=parent_stream_slice, stream_state=None ):